mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Added a new `rspack` directory as an independent Rust and pnpm workspace, dedicated to building Next.js Rspack bindings. It shares code with Turbopack through the `next-taskless` crate.
17 lines
444 B
TypeScript
17 lines
444 B
TypeScript
import * as RspackCore from '@rspack/core'
|
|
import { NapiNextExternalsPluginOptions } from '@next/rspack-binding'
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
declare class NextExternalsPlugin {
|
|
/**
|
|
* The banner text to be added to the output file.
|
|
*/
|
|
constructor(options: NapiNextExternalsPluginOptions)
|
|
}
|
|
|
|
declare const core: typeof RspackCore & {
|
|
NextExternalsPlugin: typeof NextExternalsPlugin
|
|
}
|
|
|
|
export = core
|