Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c935b1 commit e96dc01Copy full SHA for e96dc01
esbuild-config.mjs
@@ -1,5 +1,6 @@
1
import { glsl } from 'esbuild-plugin-glsl';
2
import { environmentPlugin } from 'esbuild-plugin-environment';
3
+import babel from 'esbuild-plugin-babel';
4
5
export default {
6
entryPoints: ['./lib/index.js'],
@@ -11,10 +12,15 @@ export default {
11
12
sourcemap: true,
13
plugins: [
14
glsl({
- minify: true
15
+ minify: true,
16
}),
17
environmentPlugin({
- NODE_DEBUG: false
18
+ NODE_DEBUG: false,
19
+ }),
20
+ babel({
21
+ config: {
22
+ presets: ['@babel/preset-env'],
23
+ }
24
25
],
26
alias: {
@@ -23,6 +29,6 @@ export default {
29
define: {
30
global: 'window',
31
},
- target: 'es2016',
32
+ target: 'es5',
27
33
logLevel: 'info',
28
34
};
0 commit comments