Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
app: resolveSrc('app.mpx')
},
module: {
rules: [
{
test: /\.(js|mpx)$/,
loader: 'eslint-loader',
enforce: 'pre',
include: [resolve('src')],
options: {
formatter: require('eslint-friendly-formatter')
}
},
{
test: /\.mpx$/,
use: MpxWebpackPlugin.loader({
transRpx: {
mode: 'only',
comment: 'use rpx',
include: resolve('src')
}
})
},
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test'), resolve('node_modules/@mpxjs')]
},
{
test: /\.json$/,
resourceQuery: /__component/,
type: 'javascript/auto'
priority: 100,
chunks: 'initial'
}
})
return result
}
const webpackConf = {
entry: {
app: resolveSrc('app.mpx')
},
module: {
rules: [
{
test: /\.mpx$/,
use: MpxWebpackPlugin.loader({
transRpx: {
mode: 'only',
comment: 'use rpx',
include: resolve('src')
}
})
},
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test'), resolve('node_modules/@mpxjs')]
},
{
test: /\.json$/,
resourceQuery: /__component/,
type: 'javascript/auto'