Update webpack build loader
This commit is contained in:
1 parent
bb12ea879c
commit
6c24b5e06a
2 files changed
+14
-4
No files matched your search
@@ -1,10 +1,10 @@
|
||||
module.exports = (api) => {
|
||||
api.cache(true);
|
||||
api.cache(true)
|
||||
|
||||
const presets = [
|
||||
'@babel/preset-env',
|
||||
'@babel/preset-react'
|
||||
];
|
||||
]
|
||||
|
||||
const plugins = [
|
||||
'react-hot-loader/babel',
|
||||
@@ -12,10 +12,10 @@ module.exports = (api) => {
|
||||
'@babel/plugin-syntax-dynamic-import',
|
||||
'dynamic-import-node',
|
||||
'@babel/plugin-transform-runtime'
|
||||
];
|
||||
]
|
||||
|
||||
return {
|
||||
presets,
|
||||
plugins
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,16 @@ module.exports = {
|
||||
include: /node_modules\/@superalgos/,
|
||||
loader: 'babel-loader'
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
include: /node_modules\\@advancedalgos/,
|
||||
loader: 'babel-loader'
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
include: /node_modules\/@advancedalgos/,
|
||||
loader: 'babel-loader'
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
|
||||
Reference in new issue
Block a user