Commit 284aee47 authored by 靳野's avatar 靳野

feat:配置webpack的rule来处理react-sortablejs

parent 09d5a734
......@@ -9,6 +9,14 @@ const SentryPlugin = require('@qg/sentry-webpack-plugin');
const SentryConfig = require('../.sentryclirc');
export default config => {
config.module
.rule('react-sortablejs')
.test(/react-sortablejs[\\/]dist[\\/]index\.js$/)
.use('babel-loader')
.loader(require.resolve('babel-loader'))
.options({
presets: [require.resolve('@babel/preset-env')],
});
if (process.env.NODE_ENV === 'production') {
config.plugin('sentry-webpack-plugin').use(SentryPlugin, [SentryConfig]);
}
......
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