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