Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
})
},
{
test: /\.js$/,
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'
}
})
},
{
test: /\.js$/,
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'