From d7ea88deb1698bd8ab0a99435a2b3c3b65d9dccb Mon Sep 17 00:00:00 2001 From: Cameron DeCoster Date: Mon, 24 Aug 2026 14:29:26 -0600 Subject: [PATCH] build: Add alias for regl in esbuild config --- esbuild-config.js | 2 ++ 1 file changed, 2 insertions(+) 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: {