Commit d4ed9c4d authored by 李苏's avatar 李苏 💬

添加自动try catch babel

parent 8518e793
const clearArrow = require('./tools/babel-clearArrow.js');
const proPlugins = ['dynamic-import-node', [clearArrow]];
const tryCatchAuto = require('common/src/babelPlugin/tryCatchAuto.js');
const proPlugins = ['dynamic-import-node', [tryCatchAuto]];
if (process.env.NODE_ENV === 'production') {
proPlugins.push('transform-remove-console');
proPlugins.push('transform-remove-debugger');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment