|
1 | 1 | import type { CompilationContext as FarmCompilationContext, JsPlugin as FarmPlugin } from '@farmfe/core' |
2 | 2 | import type { Compilation as RspackCompilation, Compiler as RspackCompiler, LoaderContext as RspackLoaderContext, RspackPluginInstance } from '@rspack/core' |
3 | | -import type { Options as AcornOptions } from 'acorn' |
4 | 3 | import type { BunPlugin, PluginBuilder as BunPluginBuilder } from 'bun' |
5 | 4 | import type { BuildOptions, Plugin as EsbuildPlugin, Loader, PluginBuild } from 'esbuild' |
6 | 5 | import type { Plugin as RolldownPlugin } from 'rolldown' |
7 | | -import type { AstNode, EmittedAsset, PluginContextMeta as RollupContextMeta, Plugin as RollupPlugin, SourceMapInput } from 'rollup' |
| 6 | +import type { EmittedAsset, PluginContextMeta as RollupContextMeta, Plugin as RollupPlugin, SourceMapInput } from 'rollup' |
8 | 7 | import type { Plugin as UnloaderPlugin } from 'unloader' |
9 | 8 | import type { Plugin as VitePlugin } from 'vite' |
10 | 9 | import type { Compilation as WebpackCompilation, Compiler as WebpackCompiler, LoaderContext as WebpackLoaderContext, WebpackPluginInstance } from 'webpack' |
@@ -61,7 +60,7 @@ export interface UnpluginBuildContext { |
61 | 60 | addWatchFile: (id: string) => void |
62 | 61 | emitFile: (emittedFile: EmittedAsset) => void |
63 | 62 | getWatchFiles: () => string[] |
64 | | - parse: (input: string, options?: Partial<AcornOptions>) => AstNode |
| 63 | + parse: (input: string, options?: any) => any |
65 | 64 | getNativeBuildContext?: (() => NativeBuildContext) | undefined |
66 | 65 | } |
67 | 66 |
|
|
0 commit comments