Skip to content

Commit

Permalink
Add babel plugin for vue template preprocessing. This allows precompi…
Browse files Browse the repository at this point in the history
…lation without a vue runtime for nested local components in vue SFCs, and other situations.
  • Loading branch information
dannon authored and jmchilton committed Feb 26, 2018
1 parent 7cb1647 commit f57a245
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions client/.babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"presets": ["env"],
"moduleIds": true,
"plugins": ["transform-vue-template"],
"ignore": [
"i18n.js",
"utils/localization.js",
Expand Down
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"devDependencies": {
"babel-core": "^6.24.0",
"babel-loader": "^7.1.1",
"babel-plugin-transform-vue-template": "^0.3.1",
"babel-preset-env": "^1.6.1",
"concurrently": "^3.5.1",
"css-loader": "^0.28.7",
Expand Down Expand Up @@ -93,7 +94,7 @@
"qunitjs": "^2.4.1",
"sinon": "^4.1.2",
"vue-loader": "^13.5.0",
"vue-template-compiler": "^2.5.9",
"vue-template-compiler": "^2.5.13",
"webpack": "^3.10.0"
}
}
13 changes: 10 additions & 3 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,13 @@ babel-plugin-transform-strict-mode@^6.24.1:
babel-runtime "^6.22.0"
babel-types "^6.24.1"

babel-plugin-transform-vue-template@^0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-vue-template/-/babel-plugin-transform-vue-template-0.3.1.tgz#9681fa2fae40c0248e52852b7aebd51ce6a5ac2f"
dependencies:
babylon "^6.17.4"
vue-template-es2015-compiler "^1.5.3"

babel-preset-env@^1.6.1:
version "1.6.1"
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.1.tgz#a18b564cc9b9afdf4aae57ae3c1b0d99188e6f48"
Expand Down Expand Up @@ -1022,7 +1029,7 @@ babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0, babel-types@^6.7.
lodash "^4.17.4"
to-fast-properties "^1.0.3"

babylon@^6.1.0, babylon@^6.18.0:
babylon@^6.1.0, babylon@^6.17.4, babylon@^6.18.0:
version "6.18.0"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"

Expand Down Expand Up @@ -7531,14 +7538,14 @@ vue-style-loader@^3.0.0:
hash-sum "^1.0.2"
loader-utils "^1.0.2"

vue-template-compiler@^2.5.9:
vue-template-compiler@^2.5.13:
version "2.5.13"
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.5.13.tgz#12a2aa0ecd6158ac5e5f14d294b0993f399c3d38"
dependencies:
de-indent "^1.0.2"
he "^1.1.0"

vue-template-es2015-compiler@^1.6.0:
vue-template-es2015-compiler@^1.5.3, vue-template-es2015-compiler@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.6.0.tgz#dc42697133302ce3017524356a6c61b7b69b4a18"

Expand Down

0 comments on commit f57a245

Please sign in to comment.