mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
feat(webpack): add mjs to babel-loader (#7178)
This commit is contained in:
parent
21b39fc701
commit
16b9c157bf
@ -61,7 +61,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
|
||||
},
|
||||
Object {
|
||||
\\"exclude\\": [Function exclude],
|
||||
\\"test\\": /\\\\.jsx?$/i,
|
||||
\\"test\\": /\\\\.m?jsx?$/i,
|
||||
\\"use\\": Array [
|
||||
Object {
|
||||
\\"loader\\": \\"<nuxtDir>/node_modules/babel-loader/lib/index.js\\",
|
||||
@ -636,7 +636,7 @@ exports[`webpack nuxt webpack module.rules loader=vue- 1`] = `
|
||||
exports[`webpack nuxt webpack module.rules test=.jsx 1`] = `
|
||||
"Object {
|
||||
\\"exclude\\": [Function exclude],
|
||||
\\"test\\": /\\\\.jsx?$/i,
|
||||
\\"test\\": /\\\\.m?jsx?$/i,
|
||||
\\"use\\": Array [
|
||||
Object {
|
||||
\\"loader\\": \\"<nuxtDir>/node_modules/babel-loader/lib/index.js\\",
|
||||
|
@ -271,7 +271,7 @@ export default class WebpackBaseConfig {
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.jsx?$/i,
|
||||
test: /\.m?jsx?$/i,
|
||||
exclude: (file) => {
|
||||
file = file.split('node_modules', 2)[1]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user