This commit is contained in:
chrosey
2017-09-13 07:52:34 +02:00
parent a1f16c37f4
commit 2340b0226b
24621 changed files with 2912161 additions and 149 deletions
+7
View File
@@ -0,0 +1,7 @@
This is an internal package used by `vue-loader` and `vueify`. It processes the raw render functions generated by `vue-template-compiler` to:
1. add support to ES2015 features in template expressions via Buble. (see [supported features here](https://buble.surge.sh/guide/#supported-features)).
2. remove the `with` block inside render functions to make it strict-mode compliant. This is performed only at build time so that the base template compiler can be extremely small and lightweight.
The buble implementation is built from a fork at https://github.com/yyx990803/buble
+12121
View File
File diff suppressed because one or more lines are too long
+20
View File
@@ -0,0 +1,20 @@
var buble = require('./buble')
// selectively support some handy ES2015 features in templates.
var options = {
transforms: {
stripWith: true // this is a custom feature for stripping with from Vue render functions.
}
}
module.exports = function transpile (code, opts) {
if (opts) {
opts = Object.assign({}, options, opts)
opts.transforms = Object.assign({}, options.transforms, opts.transforms)
} else {
opts = options
}
var code = buble.transform(code, opts).code
// console.log(code)
return code
}
+73
View File
@@ -0,0 +1,73 @@
{
"_args": [
[
{
"raw": "vue-template-es2015-compiler@^1.2.2",
"scope": null,
"escapedName": "vue-template-es2015-compiler",
"name": "vue-template-es2015-compiler",
"rawSpec": "^1.2.2",
"spec": ">=1.2.2 <2.0.0",
"type": "range"
},
"c:\\xampp\\htdocs\\laravel\\node_modules\\vue-loader"
]
],
"_from": "vue-template-es2015-compiler@>=1.2.2 <2.0.0",
"_id": "vue-template-es2015-compiler@1.5.2",
"_inCache": true,
"_location": "/vue-template-es2015-compiler",
"_nodeVersion": "7.8.0",
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/vue-template-es2015-compiler-1.5.2.tgz_1491788975468_0.6321271699853241"
},
"_npmUser": {
"name": "yyx990803",
"email": "yyx990803@gmail.com"
},
"_npmVersion": "4.2.0",
"_phantomChildren": {},
"_requested": {
"raw": "vue-template-es2015-compiler@^1.2.2",
"scope": null,
"escapedName": "vue-template-es2015-compiler",
"name": "vue-template-es2015-compiler",
"rawSpec": "^1.2.2",
"spec": ">=1.2.2 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/vue-loader"
],
"_resolved": "https://registry.npmjs.org/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.5.2.tgz",
"_shasum": "a0a6c50c941d2a4abda963f2f42c337ac450ee95",
"_shrinkwrap": null,
"_spec": "vue-template-es2015-compiler@^1.2.2",
"_where": "c:\\xampp\\htdocs\\laravel\\node_modules\\vue-loader",
"author": {
"name": "Evan You"
},
"dependencies": {},
"description": "This is an internal package used by `vue-loader` and `vueify`. It processes the raw render functions generated by `vue-template-compiler` to:",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "a0a6c50c941d2a4abda963f2f42c337ac450ee95",
"tarball": "https://registry.npmjs.org/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.5.2.tgz"
},
"gitHead": "1015e558f72c399b1945657eb1d752b138463b7a",
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "yyx990803",
"email": "yyx990803@gmail.com"
}
],
"name": "vue-template-es2015-compiler",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"scripts": {},
"version": "1.5.2"
}