Skip to content

Commit 9e317d2

Browse files
committed
chore: merge branch 'dev' into next-minor
2 parents 75bc181 + d27dd24 commit 9e317d2

File tree

21 files changed

+147
-113
lines changed

21 files changed

+147
-113
lines changed

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
# [3.5.5](https://github.com/vuejs/vue-cli/compare/v3.5.4...v3.5.5) (2019-04-01)
2+
3+
## babel-preset-app
4+
5+
#### Reverts
6+
7+
* "fix: should not add polyfills from transform-runtime plugin ([#3730](https://github.com/vuejs/vue-cli/issues/3730))" ([#3742](https://github.com/vuejs/vue-cli/issues/3742)) ([7228146](https://github.com/vuejs/vue-cli/commit/7228146)), closes [#3741](https://github.com/vuejs/vue-cli/issues/3741)
8+
9+
10+
11+
# [3.5.4](https://github.com/vuejs/vue-cli/compare/v3.5.3...v3.5.4) (2019-03-31)
12+
13+
## babel-preset-app
14+
15+
#### Bug Fixes
16+
17+
* should not add polyfills from transform-runtime plugin ([#3730](https://github.com/vuejs/vue-cli/issues/3730)) ([b987969](https://github.com/vuejs/vue-cli/commit/b987969))
18+
* should not use abosulte polyfill paths when `absoluteRuntime` is on ([#3732](https://github.com/vuejs/vue-cli/issues/3732)) ([9bdff3b](https://github.com/vuejs/vue-cli/commit/9bdff3b)), closes [#3725](https://github.com/vuejs/vue-cli/issues/3725)
19+
20+
## cli-plugin-babel
21+
22+
#### Bug Fixes
23+
24+
* **generator:** add core-js as direct dependency of generated projects ([#3736](https://github.com/vuejs/vue-cli/issues/3736)) ([5eb1425](https://github.com/vuejs/vue-cli/commit/5eb1425))
25+
26+
27+
28+
# [3.5.3](https://github.com/vuejs/vue-cli/compare/v3.5.2...v3.5.3) (2019-03-27)
29+
30+
## babel-preset-app
31+
32+
#### Bug Fixes
33+
34+
* downgrade [@babel](https://github.com/babel)/preset-env temporarily ([#3716](https://github.com/vuejs/vue-cli/issues/3716)) ([f107623](https://github.com/vuejs/vue-cli/commit/f107623))
35+
36+
## cli-service
37+
38+
#### Bug Fixes
39+
40+
* properly load non-js config files in genCacheConfig ([#3632](https://github.com/vuejs/vue-cli/issues/3632)) ([adac48d](https://github.com/vuejs/vue-cli/commit/adac48d)), closes [#3631](https://github.com/vuejs/vue-cli/issues/3631)
41+
* set the path of safari-no-module-fix.js correctly ([#3647](https://github.com/vuejs/vue-cli/issues/3647)) ([10296ff](https://github.com/vuejs/vue-cli/commit/10296ff)), closes [#3033](https://github.com/vuejs/vue-cli/issues/3033)
42+
43+
44+
145
# [3.5.2](https://github.com/vuejs/vue-cli/compare/v3.5.1...v3.5.2) (2019-03-27)
246

347
## babel-preset-app

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"npmClient": "yarn",
33
"useWorkspaces": false,
4-
"version": "3.5.2",
4+
"version": "3.5.5",
55
"packages": [
66
"packages/@vue/babel-preset-app",
77
"packages/@vue/cli*"

packages/@vue/babel-preset-app/__tests__/babel-preset.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,5 @@ test('disable absoluteRuntime', () => {
153153
})
154154

155155
expect(code).toMatch('import _toConsumableArray from "@babel/runtime-corejs2/helpers/esm/toConsumableArray"')
156+
// expect(code).not.toMatch(genCoreJSImportRegExp('es6.promise'))
156157
})

packages/@vue/babel-preset-app/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ module.exports = (context, options = {}) => {
106106
ignoreBrowserslistConfig,
107107
configPath
108108
})
109-
plugins.push([require('./polyfillsPlugin'), { polyfills, entryFiles }])
109+
plugins.push([
110+
require('./polyfillsPlugin'),
111+
{ polyfills, entryFiles, useAbsolutePath: !!absoluteRuntime }
112+
])
110113
} else {
111114
polyfills = []
112115
}
@@ -123,8 +126,7 @@ module.exports = (context, options = {}) => {
123126
include,
124127
exclude: polyfills.concat(exclude || []),
125128
shippedProposals,
126-
forceAllTransforms,
127-
corejs: 2
129+
forceAllTransforms
128130
}
129131

130132
// cli-plugin-jest sets this to true because Jest runs without bundling

packages/@vue/babel-preset-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/babel-preset-app",
3-
"version": "3.5.2",
3+
"version": "3.5.5",
44
"description": "babel-preset-app for vue-cli",
55
"main": "index.js",
66
"publishConfig": {
@@ -28,7 +28,7 @@
2828
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
2929
"@babel/plugin-syntax-jsx": "^7.0.0",
3030
"@babel/plugin-transform-runtime": "^7.4.0",
31-
"@babel/preset-env": "^7.4.1",
31+
"@babel/preset-env": "^7.0.0 < 7.4.0",
3232
"@babel/runtime": "^7.0.0",
3333
"@babel/runtime-corejs2": "^7.2.0",
3434
"@vue/babel-preset-jsx": "^1.0.0-beta.2",

packages/@vue/babel-preset-app/polyfillsPlugin.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,23 @@ const { addSideEffect } = require('@babel/helper-module-imports')
22

33
// slightly modifiled from @babel/preset-env/src/utils
44
// use an absolute path for core-js modules, to fix conflicts of different core-js versions
5-
function getModulePath (mod) {
6-
if (mod === 'regenerator-runtime') {
7-
return require.resolve('regenerator-runtime/runtime')
8-
}
9-
10-
return require.resolve(`core-js/modules/${mod}`)
5+
function getModulePath (mod, useAbsolutePath) {
6+
const modPath =
7+
mod === 'regenerator-runtime'
8+
? 'regenerator-runtime/runtime'
9+
: `core-js/modules/${mod}`
10+
return useAbsolutePath ? require.resolve(modPath) : modPath
1111
}
1212

13-
function createImport (path, mod) {
14-
return addSideEffect(path, getModulePath(mod))
13+
function createImport (path, mod, useAbsolutePath) {
14+
return addSideEffect(path, getModulePath(mod, useAbsolutePath))
1515
}
1616

1717
// add polyfill imports to the first file encountered.
18-
module.exports = ({ types }, { entryFiles = [] }) => {
18+
module.exports = (
19+
{ types },
20+
{ polyfills, entryFiles = [], useAbsolutePath }
21+
) => {
1922
return {
2023
name: 'vue-cli-inject-polyfills',
2124
visitor: {
@@ -24,13 +27,12 @@ module.exports = ({ types }, { entryFiles = [] }) => {
2427
return
2528
}
2629

27-
const { polyfills } = state.opts
2830
// imports are injected in reverse order
2931
polyfills
3032
.slice()
3133
.reverse()
3234
.forEach(p => {
33-
createImport(path, p)
35+
createImport(path, p, useAbsolutePath)
3436
})
3537
}
3638
}

packages/@vue/cli-plugin-babel/generator.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ module.exports = api => {
88
api.extendPackage({
99
babel: {
1010
presets: ['@vue/app']
11+
},
12+
dependencies: {
13+
'core-js': '^2.6.5'
1114
}
1215
})
1316
}

packages/@vue/cli-plugin-babel/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/cli-plugin-babel",
3-
"version": "3.5.2",
3+
"version": "3.5.5",
44
"description": "babel plugin for vue-cli",
55
"main": "index.js",
66
"repository": {
@@ -21,7 +21,7 @@
2121
"homepage": "https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/cli-plugin-babel#readme",
2222
"dependencies": {
2323
"@babel/core": "^7.0.0",
24-
"@vue/babel-preset-app": "^3.5.2",
24+
"@vue/babel-preset-app": "^3.5.5",
2525
"@vue/cli-shared-utils": "^3.5.1",
2626
"babel-loader": "^8.0.5",
2727
"webpack": ">=4 < 4.29"

packages/@vue/cli-plugin-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/cli-plugin-typescript",
3-
"version": "3.5.2",
3+
"version": "3.5.3",
44
"description": "typescript plugin for vue-cli",
55
"main": "index.js",
66
"repository": {

packages/@vue/cli-plugin-unit-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/cli-plugin-unit-jest",
3-
"version": "3.5.2",
3+
"version": "3.5.3",
44
"description": "unit-jest plugin for vue-cli",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)