Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9e5b16b

Browse filesBrowse files
authored
fix: enable some syntax extensions by default for vue script compiler (#5868)
1 parent 34c09dc commit 9e5b16b
Copy full SHA for 9e5b16b

File tree

Expand file treeCollapse file tree

3 files changed

+33
-25
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+33
-25
lines changed

‎packages/@vue/cli-service/lib/config/base.js

Copy file name to clipboardExpand all lines: packages/@vue/cli-service/lib/config/base.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ module.exports = (api, options) => {
133133
.end()
134134
.use('vue-loader')
135135
.loader(require.resolve('vue-loader-v16'))
136-
.options(vueLoaderCacheConfig)
136+
.options({
137+
...vueLoaderCacheConfig,
138+
babelParserPlugins: ['jsx', 'classProperties', 'decorators-legacy']
139+
})
137140
.end()
138141
.end()
139142

‎packages/@vue/cli-service/package.json

Copy file name to clipboardExpand all lines: packages/@vue/cli-service/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"webpack-merge": "^4.2.2"
8181
},
8282
"optionalDependencies": {
83-
"vue-loader-v16": "npm:vue-loader@^16.0.0-beta.3"
83+
"vue-loader-v16": "npm:vue-loader@^16.0.0-beta.7"
8484
},
8585
"peerDependencies": {
8686
"@vue/compiler-sfc": "^3.0.0-beta.14",

‎yarn.lock

Copy file name to clipboardExpand all lines: yarn.lock
+28-23Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,6 @@
99
dependencies:
1010
fswin "^2.17.1227"
1111

12-
"@ant-design-vue/babel-helper-vue-transform-on@^1.0.0":
13-
version "1.0.1"
14-
resolved "https://registry.yarnpkg.com/@ant-design-vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.0.1.tgz#d219d92f4e1fc5e7add211c347c7fa000518b623"
15-
integrity sha512-dOAPf/tCM2lCG8FhvOMFBaOdMElMEGhOoocMXEWvHW2l1KIex+UibDcq4bdBEJpDMLrnbNOqci9E7P2dARP6lg==
16-
17-
"@ant-design-vue/babel-plugin-jsx@^1.0.0-0":
18-
version "1.0.0-rc.1"
19-
resolved "https://registry.yarnpkg.com/@ant-design-vue/babel-plugin-jsx/-/babel-plugin-jsx-1.0.0-rc.1.tgz#ae56cecbda9f08691bcf92dfe98e2416e77d758b"
20-
integrity sha512-x7PfAHSs5/emIuey1Df7Bh/vJU27S9KBdufzoAA7kgwTpEpY85R7CXD9gl6sJFB7aG2pZpl4Tmm+FsHlzgp7fA==
21-
dependencies:
22-
"@ant-design-vue/babel-helper-vue-transform-on" "^1.0.0"
23-
"@babel/helper-module-imports" "^7.0.0"
24-
"@babel/plugin-syntax-jsx" "^7.0.0"
25-
"@babel/traverse" "^7.0.0"
26-
"@babel/types" "^7.0.0"
27-
camelcase "^6.0.0"
28-
html-tags "^3.1.0"
29-
svg-tags "^1.0.0"
30-
3112
"@apollo/federation@0.17.0":
3213
version "0.17.0"
3314
resolved "https://registry.yarnpkg.com/@apollo/federation/-/federation-0.17.0.tgz#549c3f8c8d5a33db28a4c628d8a9fb5430758c62"
@@ -2986,6 +2967,11 @@
29862967
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-5.2.7.tgz#315d570ccb56c53452ff8638738df60726d5b6ea"
29872968
integrity sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ==
29882969

2970+
"@types/mocha@^8.0.1":
2971+
version "8.0.3"
2972+
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-8.0.3.tgz#51b21b6acb6d1b923bbdc7725c38f9f455166402"
2973+
integrity sha512-vyxR57nv8NfcU0GZu8EUXZLTbCMupIUwy95LJ6lllN+JRPG25CwMHoB1q5xKh8YKhQnHYRAn4yW2yuHbf/5xgg==
2974+
29892975
"@types/node-fetch@2.5.7":
29902976
version "2.5.7"
29912977
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.7.tgz#20a2afffa882ab04d44ca786449a276f9f6bbf3c"
@@ -3225,6 +3211,25 @@
32253211
resolved "https://registry.yarnpkg.com/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.0.0.tgz#048fe579958da408fb7a8b2a3ec050b50a661040"
32263212
integrity sha512-6tyf5Cqm4m6v7buITuwS+jHzPlIPxbFzEhXR5JGZpbrvOcp1hiQKckd305/3C7C36wFekNTQSxAtgeM0j0yoUw==
32273213

3214+
"@vue/babel-helper-vue-transform-on@^1.0.0-rc.2":
3215+
version "1.0.0-rc.2"
3216+
resolved "https://registry.yarnpkg.com/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.0.0-rc.2.tgz#7246341f666e7c6e65b13da420e2ce85714fbbca"
3217+
integrity sha512-1+7CwjQ0Kasml6rHoNQUmbISwqLNNfFVBUcZl6QBremUl296ZmLrVQPqJP5pyAAWjZke5bpI1hlj+LVVuT7Jcg==
3218+
3219+
"@vue/babel-plugin-jsx@^1.0.0-0":
3220+
version "1.0.0-rc.2"
3221+
resolved "https://registry.yarnpkg.com/@vue/babel-plugin-jsx/-/babel-plugin-jsx-1.0.0-rc.2.tgz#2c72a6bf6d10f57bb6bf1a2799214a541933345b"
3222+
integrity sha512-NVTDsaYShZx8ZqZo1Z0ndNrdoLfwRTwz0e6S+7SEn3j21WwlbVHMhD6t/tDBhvscwAQ5N/AFuCCrf90iyC5sHA==
3223+
dependencies:
3224+
"@babel/helper-module-imports" "^7.0.0"
3225+
"@babel/plugin-syntax-jsx" "^7.0.0"
3226+
"@babel/traverse" "^7.0.0"
3227+
"@babel/types" "^7.0.0"
3228+
"@vue/babel-helper-vue-transform-on" "^1.0.0-rc.2"
3229+
camelcase "^6.0.0"
3230+
html-tags "^3.1.0"
3231+
svg-tags "^1.0.0"
3232+
32283233
"@vue/babel-plugin-transform-vue-jsx@^1.1.2":
32293234
version "1.1.2"
32303235
resolved "https://registry.yarnpkg.com/@vue/babel-plugin-transform-vue-jsx/-/babel-plugin-transform-vue-jsx-1.1.2.tgz#c0a3e6efc022e75e4247b448a8fc6b86f03e91c0"
@@ -19978,10 +19983,10 @@ vue-jest@^3.0.5:
1997819983
tsconfig "^7.0.0"
1997919984
vue-template-es2015-compiler "^1.6.0"
1998019985

19981-
"vue-loader-v16@npm:vue-loader@^16.0.0-beta.3":
19982-
version "16.0.0-beta.4"
19983-
resolved "https://registry.yarnpkg.com/vue-loader/-/vue-loader-16.0.0-beta.4.tgz#1d9d7894f430992096727c4414bcf3b1ae8c1be9"
19984-
integrity sha512-uh/+SIwoN+hny0+GqxdkTuEmt1NV4wb8etF5cKkB1YVMv29ck0byrmkt8IIYadQ3r/fiYsr2brGJqP+hytQwuw==
19986+
"vue-loader-v16@npm:vue-loader@^16.0.0-beta.7":
19987+
version "16.0.0-beta.7"
19988+
resolved "https://registry.yarnpkg.com/vue-loader/-/vue-loader-16.0.0-beta.7.tgz#6f2726fa0e2b1fbae67895c47593bbf69f2b9ab8"
19989+
integrity sha512-xQ8/GZmRPdQ3EinnE0IXwdVoDzh7Dowo0MowoyBuScEBXrRabw6At5/IdtD3waKklKW5PGokPsm8KRN6rvQ1cw==
1998519990
dependencies:
1998619991
"@types/mini-css-extract-plugin" "^0.9.1"
1998719992
chalk "^3.0.0"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.