Skip to content

Commit

Permalink
Pass compiler of @vue/component-compiler-utils to parser. (#1496)
Browse files Browse the repository at this point in the history
Seems like this bug #1490 appeared, after the change made in this commit vuejs/component-compiler-utils@caa1538#diff-3bebbbb54c7d798b4200eb324ebd4500R17

Tested for older version of vuejs/component-compiler-utils, works pretty fine.
  • Loading branch information
knight-bubble authored and Jasper De Moor committed Jun 7, 2018
1 parent 24f28bc commit 40fb76f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"ws": "^5.1.1"
},
"devDependencies": {
"@vue/component-compiler-utils": "^1.0.0",
"@vue/component-compiler-utils": "^2.0.0",
"babel-cli": "^6.26.0",
"babel-plugin-transform-async-super": "^1.0.0",
"babel-polyfill": "^6.26.0",
Expand Down
3 changes: 2 additions & 1 deletion src/assets/VueAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class VueAsset extends Asset {
source: code,
needMap: this.options.sourceMaps,
filename: this.relativeName, // Used for sourcemaps
sourceRoot: '' // Used for sourcemaps. Override so it doesn't use cwd
sourceRoot: '', // Used for sourcemaps. Override so it doesn't use cwd
compiler: this.vueTemplateCompiler
});
}

Expand Down
12 changes: 4 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@
dependencies:
"@types/babel-types" "*"

"@vue/component-compiler-utils@^1.0.0":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@vue/component-compiler-utils/-/component-compiler-utils-1.2.1.tgz#3d543baa75cfe5dab96e29415b78366450156ef6"
"@vue/component-compiler-utils@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@vue/component-compiler-utils/-/component-compiler-utils-2.0.0.tgz#ea2e46d04c521afbce91a011ae2eb09460362a4b"
dependencies:
consolidate "^0.15.1"
hash-sum "^1.0.2"
lru-cache "^4.1.2"
merge-source-map "^1.1.0"
postcss "^6.0.20"
postcss-selector-parser "^3.1.1"
prettier "^1.11.1"
prettier "^1.13.0"
source-map "^0.5.6"
vue-template-es2015-compiler "^1.6.0"

Expand Down Expand Up @@ -5355,10 +5355,6 @@ preserve@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"

prettier@^1.11.1:
version "1.12.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.12.1.tgz#c1ad20e803e7749faf905a409d2367e06bbe7325"

prettier@^1.13.0:
version "1.13.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.0.tgz#054de8d5fb1a4405c845d16183f58a2c301f6f16"
Expand Down

0 comments on commit 40fb76f

Please sign in to comment.