diff --git a/esbuild-config.js b/esbuild-config.js index 3ea23508dfb..64a48977f26 100644 --- a/esbuild-config.js +++ b/esbuild-config.js @@ -14,6 +14,8 @@ const esbuildConfig = { sourcemap: false, plugins: [InlineCSSPlugin(), glsl({ minify: true }), environmentPlugin({ NODE_DEBUG: false })], alias: { + // Force users of regl (gl-text) to use the plotly flavor to deduplicate code + regl: '@plotly/regl', stream: 'stream-browserify' }, define: {