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 5795d71 commit e83406bCopy full SHA for e83406b
esbuild-config.js
@@ -1,9 +1,10 @@
1
var glsl = require('esbuild-plugin-glsl').glsl;
2
var environmentPlugin = require('esbuild-plugin-environment').environmentPlugin;
3
+var umdWrapper = require('esbuild-plugin-umd-wrapper').umdWrapper;
4
5
module.exports = {
6
entryPoints: ['./lib/index.js'],
- format: 'iife',
7
+ format: 'cjs',
8
globalName: 'Plotly',
9
bundle: true,
10
minify: false,
@@ -15,6 +16,9 @@ module.exports = {
15
16
environmentPlugin({
17
NODE_DEBUG: false,
18
}),
19
+ umdWrapper({
20
+ libraryName: 'Plotly'
21
+ })
22
],
23
alias: {
24
stream: 'stream-browserify',
0 commit comments