Skip to content

Commit 2ef6c5b

Browse files
committed
Revert "fix: mark fsevents as external"
This reverts commit 4a5fa73.
1 parent f413cb8 commit 2ef6c5b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

rollup.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ const nodePlugins = [
7979
export 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'

src/watch/fsevents-importer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ let fsEvents: unknown;
22
let fsEventsImportError: Error | undefined;
33

44
export 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
}

0 commit comments

Comments
 (0)