forked from plotly/plotly.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesbuild-config.js
More file actions
34 lines (33 loc) · 772 Bytes
/
esbuild-config.js
File metadata and controls
34 lines (33 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var glsl = require('esbuild-plugin-glsl').glsl;
var environmentPlugin = require('esbuild-plugin-environment').environmentPlugin;
// var babel = require('esbuild-plugin-babel');
module.exports = {
entryPoints: ['./lib/index.js'],
format: 'iife',
globalName: 'Plotly',
bundle: true,
minify: false,
sourcemap: false,
plugins: [
glsl({
minify: true,
}),
environmentPlugin({
NODE_DEBUG: false,
}),
/*
babel({
modules: 'umd',
// config: { presets: ['@babel/preset-env'] }
}),
*/
],
alias: {
stream: 'stream-browserify',
},
define: {
global: 'window',
},
target: 'es2016',
logLevel: 'info',
};