File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ let lintFile: typeof lintFileWrapper | null = null;
99function loadPluginWrapper ( path : string ) : Promise < string > {
1010 if ( loadPlugin === null ) {
1111 const require = createRequire ( import . meta. url ) ;
12- ( { loadPlugin, lintFile } = require ( './plugins/index.js' ) ) ;
12+ // `plugins.js` is in root of `dist`. See `tsdown.config.ts`.
13+ ( { loadPlugin, lintFile } = require ( './plugins.js' ) ) ;
1314 }
1415 return loadPlugin ( path ) ;
1516}
Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ const commonConfig: UserConfig = {
2323// Only generate `.d.ts` file for main export, not for CLI
2424export default defineConfig ( [
2525 {
26- entry : [ 'src-js/cli.ts' , 'src-js/plugins/index.ts' ] ,
26+ entry : {
27+ cli : 'src-js/cli.ts' ,
28+ plugins : 'src-js/plugins/index.ts' ,
29+ } ,
2730 ...commonConfig ,
2831 dts : false ,
2932 } ,
You can’t perform that action at this time.
0 commit comments