@vue/compiler-sfc 3.1.1 → 3.1.2
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.
- package/dist/compiler-sfc.cjs.js +1 -1
- package/dist/compiler-sfc.esm-browser.js +8102 -4141
- package/package.json +7 -6
package/dist/compiler-sfc.cjs.js
CHANGED
|
@@ -1212,7 +1212,7 @@ function preprocess$1(options, preprocessor) {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
1214
|
const defaultExportRE = /((?:^|\n|;)\s*)export(\s*)default/;
|
|
1215
|
-
const namedDefaultExportRE = /((?:^|\n|;)\s*)export(.+)as(\s*)default
|
|
1215
|
+
const namedDefaultExportRE = /((?:^|\n|;)\s*)export(.+)as(\s*)default/s;
|
|
1216
1216
|
const exportDefaultClassRE = /((?:^|\n|;)\s*)export\s+default\s+class\s+([\w$]+)/;
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Utility for rewriting `export default` in a script block into a variable
|