Skip to content

Commit d7ea88d

Browse files
committed
build: Add alias for regl in esbuild config
1 parent 8bc6ee5 commit d7ea88d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎esbuild-config.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const esbuildConfig = {
1414
sourcemap: false,
1515
plugins: [InlineCSSPlugin(), glsl({ minify: true }), environmentPlugin({ NODE_DEBUG: false })],
1616
alias: {
17+
// Force users of regl (gl-text) to use the plotly flavor to deduplicate code
18+
regl: '@plotly/regl',
1719
stream: 'stream-browserify'
1820
},
1921
define: {

0 commit comments

Comments
 (0)