rollup-plugin-vue
Advanced tools
Comparing version 6.0.0-beta.7 to 6.0.0-beta.8
@@ -295,10 +295,15 @@ "use strict"; | ||
if (descriptor.script || descriptor.scriptSetup) { | ||
descriptor.script = compiler_sfc_1.compileScript(descriptor); | ||
const src = descriptor.script.src || resourcePath; | ||
const attrsQuery = attrsToQuery(descriptor.script.attrs, 'js'); | ||
const srcQuery = descriptor.script.src ? `&src` : ``; | ||
const query = `?vue&type=script${srcQuery}${attrsQuery}`; | ||
const scriptRequest = _(src + query); | ||
scriptImport = | ||
`import script from ${scriptRequest}\n` + `export * from ${scriptRequest}`; // support named exports | ||
if (compiler_sfc_1.compileScript) { | ||
descriptor.script = compiler_sfc_1.compileScript(descriptor); | ||
} | ||
if (descriptor.script) { | ||
const src = descriptor.script.src || resourcePath; | ||
const attrsQuery = attrsToQuery(descriptor.script.attrs, 'js'); | ||
const srcQuery = descriptor.script.src ? `&src` : ``; | ||
const query = `?vue&type=script${srcQuery}${attrsQuery}`; | ||
const scriptRequest = _(src + query); | ||
scriptImport = | ||
`import script from ${scriptRequest}\n` + | ||
`export * from ${scriptRequest}`; // support named exports | ||
} | ||
} | ||
@@ -305,0 +310,0 @@ return scriptImport; |
{ | ||
"name": "rollup-plugin-vue", | ||
"version": "6.0.0-beta.7", | ||
"version": "6.0.0-beta.8", | ||
"license": "MIT", | ||
@@ -31,3 +31,3 @@ "main": "dist/index.js", | ||
"@types/node": "^13.13.2", | ||
"@vue/compiler-sfc": "^3.0.0-beta.14", | ||
"@vue/compiler-sfc": "^3.0.0-beta.22", | ||
"husky": "^4.2.0", | ||
@@ -34,0 +34,0 @@ "jest": "^26.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
21389
442