Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
loader: 'babel-loader',
include: [resolve('src'), resolve('test'), resolve('node_modules/@mpxjs')]
},
{
test: /\.json$/,
resourceQuery: /__component/,
type: 'javascript/auto'
},
{
test: /\.(wxs|qs|sjs|filter\.js)$/,
loader: MpxWebpackPlugin.wxsPreLoader(),
enforce: 'pre'
},
{
test: /\.(png|jpe?g|gif|svg)$/,
loader: MpxWebpackPlugin.urlLoader({
name: 'img/[name][hash].[ext]'
})
}
]
},
output: {
filename: '[name].js'
},
optimization: {
runtimeChunk: {
name: 'bundle'
},
splitChunks: {
cacheGroups: {
main: {
name: 'bundle',
loader: 'babel-loader',
include: [resolve('src'), resolve('test'), resolve('node_modules/@mpxjs')]
},
{
test: /\.json$/,
resourceQuery: /__component/,
type: 'javascript/auto'
},
{
test: /\.(wxs|qs|sjs|filter\.js)$/,
loader: MpxWebpackPlugin.wxsPreLoader(),
enforce: 'pre'
},
{
test: /\.(png|jpe?g|gif|svg)$/,
loader: MpxWebpackPlugin.urlLoader({
name: 'img/[name][hash].[ext]'
})
}
]
},
output: {
filename: '[name].js'
},
optimization: {
runtimeChunk: {
name: 'bundle'
},
noEmitOnErrors: false,
splitChunks: {
cacheGroups: {
main: {