Files
next.js/rspack/lib/index.d.ts
Cong-Cong PanandGitHub c0d94dc1ac feat: next-rspack-binding (#82811)
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.
2025-09-18 16:03:02 +00:00

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