File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ const nodePlugins = [
7979export default ( command : Record < string , unknown > ) : RollupOptions | RollupOptions [ ] => {
8080 const { collectLicenses, writeLicense } = getLicenseHandler ( ) ;
8181 const commonJSBuild : RollupOptions = {
82+ external : [ 'fsevents' ] ,
8283 input : {
8384 'loadConfigFile.js' : 'cli/run/loadConfigFile.ts' ,
8485 'rollup.js' : 'src/node-entry.ts'
Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ let fsEvents: unknown;
22let fsEventsImportError : Error | undefined ;
33
44export async function loadFsEvents ( ) : Promise < void > {
5- const moduleName = 'fsevents' ;
6-
75 try {
8- ( { default : fsEvents } = await import ( moduleName ) ) ;
6+ ( { default : fsEvents } = await import ( 'fsevents' ) ) ;
97 } catch ( err : any ) {
108 fsEventsImportError = err ;
119 }
You can’t perform that action at this time.
0 commit comments