Description
Remove Babel-related dependencies from the stackgl_modules build process.
Notes
Scope
In stackgl_modules/webpack.config.js:
- Remove both
babel-loader rules (the project-files rule is effectively a no-op without a babel config; the buffer/is-mobile rule is redundant with esbuild)
- Remove
target: ['web', 'es5']
In stackgl_modules/package.json, drop the now-unused devDeps:
@babel/core
@babel/preset-env
@babel/plugin-transform-modules-commonjs
babel-loader
ify-loader (glslify) and raw-loader must stay — they handle the GLSL shader preprocessing that's the actual reason this pre-bundle exists.
Testing
- After removing the babel rules, run
npm run bundle-stackgl
- Rebuild plotly.js and smoke-test 3D traces (scatter3d / mesh3d / surface) to confirm things still run/look the same
Description
Remove Babel-related dependencies from the
stackgl_modulesbuild process.Notes
stackgl_modulesis a pre-bundled vendor folderstackgl_modulesbuild process has used Babel to transpile the included dependencies to ES5 syntaxScope
In
stackgl_modules/webpack.config.js:babel-loaderrules (the project-files rule is effectively a no-op without a babel config; thebuffer/is-mobilerule is redundant with esbuild)target: ['web', 'es5']In
stackgl_modules/package.json, drop the now-unused devDeps:@babel/core@babel/preset-env@babel/plugin-transform-modules-commonjsbabel-loaderify-loader(glslify) andraw-loadermust stay — they handle the GLSL shader preprocessing that's the actual reason this pre-bundle exists.Testing
npm run bundle-stackgl