Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 05b3940

Browse files
committed
adjust esbuild config
1 parent 4b50e9a commit 05b3940

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

esbuild-config.mjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export default {
88
format: 'iife',
99
globalName: 'Plotly',
1010
bundle: true,
11-
minify: true,
12-
sourcemap: true,
11+
minify: false,
12+
sourcemap: false,
1313
plugins: [
1414
glsl({
1515
minify: true,
@@ -19,9 +19,7 @@ export default {
1919
}),
2020
babel({
2121
modules: 'umd',
22-
config: {
23-
presets: ['@babel/preset-env'],
24-
}
22+
// config: { presets: ['@babel/preset-env'] }
2523
}),
2624
],
2725
alias: {
@@ -30,6 +28,6 @@ export default {
3028
define: {
3129
global: 'window',
3230
},
33-
target: 'es5',
31+
target: 'es2016',
3432
logLevel: 'info',
3533
};

0 commit comments

Comments
 (0)