Skip to content

Commit 1360e46

Browse files
committed
remove seemingly unneeded polyfill
1 parent 20d11fa commit 1360e46

File tree

4 files changed

+158
-175
lines changed

4 files changed

+158
-175
lines changed

automation/build/esbuild.config.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import builtins from 'builtin-modules';
22
import esbuild from 'esbuild';
33
import { getBuildBanner } from 'build/buildBanner';
4-
import { nodeModulesPolyfillPlugin } from 'esbuild-plugins-node-modules-polyfill';
54

65
const banner = getBuildBanner('Release Build', version => version);
76

@@ -38,15 +37,7 @@ const build = await esbuild.build({
3837
define: {
3938
MB_GLOBAL_CONFIG_DEV_BUILD: 'false',
4039
},
41-
plugins: [
42-
nodeModulesPolyfillPlugin({
43-
modules: {
44-
fs: true,
45-
path: true,
46-
url: true,
47-
},
48-
}),
49-
],
40+
plugins: [],
5041
});
5142

5243
const file = Bun.file('meta.txt');

automation/build/esbuild.dev.config.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import esbuild from 'esbuild';
22
import copy from 'esbuild-plugin-copy-watch';
33
import manifest from '../../manifest.json' assert { type: 'json' };
44
import { getBuildBanner } from 'build/buildBanner';
5-
import { nodeModulesPolyfillPlugin } from 'esbuild-plugins-node-modules-polyfill';
65

76
const banner = getBuildBanner('Dev Build', _ => 'Dev Build');
87

@@ -50,13 +49,6 @@ const context = await esbuild.context({
5049
},
5150
],
5251
}),
53-
nodeModulesPolyfillPlugin({
54-
modules: {
55-
fs: true,
56-
path: true,
57-
url: true,
58-
},
59-
}),
6052
],
6153
});
6254

0 commit comments

Comments
 (0)