@vue/compiler-sfc 2.7.0-beta.6 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8264,8 +8264,12 @@ function compileScript(sfc, options = { id: '' }) {
8264
8264
  }
8265
8265
  if (options.babelParserPlugins)
8266
8266
  plugins.push(...options.babelParserPlugins);
8267
- if (isTS)
8268
- plugins.push('typescript', 'decorators-legacy');
8267
+ if (isTS) {
8268
+ plugins.push('typescript');
8269
+ if (!plugins.includes('decorators')) {
8270
+ plugins.push('decorators-legacy');
8271
+ }
8272
+ }
8269
8273
  if (!scriptSetup) {
8270
8274
  if (!script) {
8271
8275
  throw new Error(`[@vue/compiler-sfc] SFC contains no <script> tags.`);
@@ -9691,7 +9695,6 @@ function urlToRequire(url, transformAssetUrlsOption = {}) {
9691
9695
  // only version provided by rollup-plugin-node-builtins.
9692
9696
  return `"${(path__default["default"].posix || path__default["default"]).join(transformAssetUrlsOption.base, uriParts.path + (uriParts.hash || ''))}"`;
9693
9697
  }
9694
- return returnValue;
9695
9698
  }
9696
9699
  if (transformAssetUrlsOption.includeAbsolute ||
9697
9700
  firstChar === '.' ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-sfc",
3
- "version": "2.7.0-beta.6",
3
+ "version": "2.7.0",
4
4
  "description": "compiler-sfc for Vue 2",
5
5
  "main": "dist/compiler-sfc.js",
6
6
  "types": "dist/compiler-sfc.d.ts",