@vue/component-compiler-utils
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -0,1 +1,12 @@ | ||
<a name="1.3.0"></a> | ||
# [1.3.0](https://github.com/vuejs/component-compiler-utils/compare/v1.2.1...v1.3.0) (2018-05-22) | ||
### Features | ||
* include href for <image> in transformAssetUrls (close [#12](https://github.com/vuejs/component-compiler-utils/issues/12)) ([86fddc2](https://github.com/vuejs/component-compiler-utils/commit/86fddc2)) | ||
* Provide installation instructions on missing language preprocessors ([#10](https://github.com/vuejs/component-compiler-utils/issues/10)) ([97e772c](https://github.com/vuejs/component-compiler-utils/commit/97e772c)) | ||
<a name="1.2.1"></a> | ||
@@ -2,0 +13,0 @@ ## [1.2.1](https://github.com/vuejs/component-compiler-utils/compare/v1.2.0...v1.2.1) (2018-04-26) |
@@ -16,2 +16,11 @@ "use strict"; | ||
} | ||
else if (preprocessLang) { | ||
return { | ||
code: (`var render = function () {}\n` + | ||
`var staticRenderFns = []\n`), | ||
source: options.source, | ||
tips: [`Component ${options.filename} uses lang ${preprocessLang} for template. Please install the language preprocessor.`], | ||
errors: [`Component ${options.filename} uses lang ${preprocessLang} for template, however it is not installed.`] | ||
}; | ||
} | ||
else { | ||
@@ -18,0 +27,0 @@ return actuallyCompile(options); |
@@ -9,3 +9,3 @@ "use strict"; | ||
img: 'src', | ||
image: 'xlink:href' | ||
image: ['xlink:href', 'href'] | ||
}; | ||
@@ -12,0 +12,0 @@ exports.default = (userOptions) => { |
@@ -43,2 +43,12 @@ import { | ||
})) | ||
} else if (preprocessLang) { | ||
return { | ||
code: ( | ||
`var render = function () {}\n` + | ||
`var staticRenderFns = []\n` | ||
), | ||
source: options.source, | ||
tips: [`Component ${options.filename} uses lang ${preprocessLang} for template. Please install the language preprocessor.`], | ||
errors: [`Component ${options.filename} uses lang ${preprocessLang} for template, however it is not installed.`] | ||
}; | ||
} else { | ||
@@ -45,0 +55,0 @@ return actuallyCompile(options) |
@@ -13,3 +13,3 @@ // vue compiler module for transforming `<tag>:<attribute>` to `require` | ||
img: 'src', | ||
image: 'xlink:href' | ||
image: ['xlink:href', 'href'] | ||
} | ||
@@ -16,0 +16,0 @@ |
{ | ||
"name": "@vue/component-compiler-utils", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Lower level utilities for compiling Vue single file components", | ||
@@ -31,3 +31,3 @@ "main": "dist/index.js", | ||
"@types/node": "^9.4.7", | ||
"conventional-changelog": "^1.1.24", | ||
"conventional-changelog-cli": "^1.3.22", | ||
"jest": "^22.4.2", | ||
@@ -34,0 +34,0 @@ "less": "^3.0.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49972
1361