Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(webpack): use javascript/auto for js rule #9180

Merged
merged 24 commits into from May 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ba964ac
fix(webpack): add .mjs workaround to default webpack config
danielroe Apr 22, 2021
e0b31ae
fix: add `javascript/auto` type to all compiled js files
danielroe May 11, 2021
7fc897f
chore(deps): update dependency webpack-node-externals to v3 (#9174)
renovate[bot] Apr 23, 2021
5f264d5
chore(deps): update dependency defu to v4 (#9184)
renovate[bot] Apr 23, 2021
d486f8b
chore(deps): update all non-major dependencies (#9160)
renovate[bot] Apr 23, 2021
0a16499
fix(vue-app): use route.replace instead of router.push to trigger nav…
enwin May 3, 2021
ebd3ad2
chore(deps): update all non-major dependencies (#9188)
renovate[bot] May 3, 2021
c0f58e6
fix(babel): loose option for babel class-properties and private-metho…
clarkdo May 3, 2021
ee9583f
chore(deps): update dependency core-js-compat to ^3.11.2 (#9233)
renovate[bot] May 3, 2021
6581026
chore(deps): update dependency @types/file-loader to v5 (#9197)
renovate[bot] May 3, 2021
d269c70
chore(deps): ingore wrap-ansi v8 which requires node 12
clarkdo May 3, 2021
f3f696b
chore(deps): update devdependency puppeteer-core to v9 (#9175)
renovate[bot] May 3, 2021
bd237e7
chore(deps): lock file maintenance (#9168)
renovate[bot] May 3, 2021
e356151
chore: update Q&A to discussions
Atinux May 6, 2021
2b52b9b
chore(deps): update all non-major dependencies (#9235)
renovate[bot] May 8, 2021
74c6224
chore(deps): update dependency dotenv to v9 (#9244)
renovate[bot] May 8, 2021
2e3657e
chore: update rollup dependencies
pi0 May 8, 2021
8976f8d
v2.15.5 [release]
pi0 May 8, 2021
cc7081c
fix(types): pin to `@types/webpack-dev-middleware@4.1.2` (#9270)
danielroe May 10, 2021
e5e0434
chore: ignore `@types/webpack-bundle-analyzer` updates
pi0 May 11, 2021
d0ef135
chore(types): pin `@nuxt/types` dependency versions
pi0 May 11, 2021
8942446
chore(deps): update all non-major dependencies (#9258)
renovate[bot] May 11, 2021
141fc97
test: update snapshot
danielroe May 11, 2021
e15f438
Merge remote-tracking branch 'origin/dev' into fix/mjs-workaround
danielroe May 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/cli/test/unit/__snapshots__/webpack.test.js.snap
Expand Up @@ -62,6 +62,7 @@ exports[`webpack nuxt webpack module.rules 1`] = `
Object {
\\"exclude\\": [Function exclude],
\\"test\\": /\\\\.m?jsx?$/i,
\\"type\\": \\"javascript/auto\\",
\\"use\\": Array [
Object {
\\"loader\\": \\"<nuxtDir>/node_modules/babel-loader/lib/index.js\\",
Expand Down Expand Up @@ -674,6 +675,7 @@ exports[`webpack nuxt webpack module.rules test=.jsx 1`] = `
"Object {
\\"exclude\\": [Function exclude],
\\"test\\": /\\\\.m?jsx?$/i,
\\"type\\": \\"javascript/auto\\",
\\"use\\": Array [
Object {
\\"loader\\": \\"<nuxtDir>/node_modules/babel-loader/lib/index.js\\",
Expand Down
1 change: 1 addition & 0 deletions packages/webpack/src/config/base.js
Expand Up @@ -330,6 +330,7 @@ export default class WebpackBaseConfig {
},
{
test: /\.m?jsx?$/i,
type: 'javascript/auto',
exclude: (file) => {
file = file.split(/node_modules(.*)/)[1]

Expand Down