mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
23 lines
613 B
JavaScript
23 lines
613 B
JavaScript
const getBabelConfig = require('ocular-dev-tools/config/babel.config');
|
|
|
|
module.exports = api => {
|
|
const config = getBabelConfig(api);
|
|
config.plugins = config.plugins || [];
|
|
|
|
config.plugins.push(
|
|
'version-inline',
|
|
// NOTE: To debug our babel plugins, just reference the local modules
|
|
// './dev-modules/babel-plugin-inline-gl-constants',
|
|
'babel-plugin-inline-webgl-constants',
|
|
// ['./dev-modules/babel-plugin-remove-glsl-comments', {
|
|
[
|
|
'babel-plugin-remove-glsl-comments',
|
|
{
|
|
patterns: ['**/shadertools/src/modules/**/*.js']
|
|
}
|
|
]
|
|
);
|
|
|
|
return config;
|
|
};
|