Closed agungsb closed 7 years ago
Is there anyway to add babel plugins?
I added babel-resolver and babel-plugin-transform-remove-console modules to the project. Then I made some edit in app.js:
babel-resolver
babel-plugin-transform-remove-console
app.js
require('babel-register')({ ignore: /\/(build|node_modules)\//, presets: ['env', 'react-app'], plugins: [ "transform-remove-console" ], resolveModuleSource: require('babel-resolver')(basePath) })
The babel-resolver works fine, but the transform-remove-console seems not processed at all.
transform-remove-console
Any thoughts, @ayroblu ? Thanks.
Umm, not sure if this is server side or client side. app js is client side right? Perhaps adjusting a babelrc might work? But yeah alittle confused where this is
Is there anyway to add babel plugins?
I added
babel-resolver
andbabel-plugin-transform-remove-console
modules to the project. Then I made some edit inapp.js
:The
babel-resolver
works fine, but thetransform-remove-console
seems not processed at all.Any thoughts, @ayroblu ? Thanks.