10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d47eca5 commit c6b7352Copy full SHA for c6b7352
src/transform.ts
@@ -247,6 +247,7 @@ async function doCompileScript(
247
inlineTemplate: true,
248
...store.sfcOptions?.script,
249
id,
250
+ genDefaultAs: COMP_IDENTIFIER,
251
templateOptions: {
252
...store.sfcOptions?.template,
253
ssr,
@@ -265,13 +266,7 @@ async function doCompileScript(
265
266
2,
267
)} */`
268
}
- code +=
269
- `\n` +
270
- store.compiler.rewriteDefault(
271
- compiledScript.content,
272
- COMP_IDENTIFIER,
273
- expressionPlugins,
274
- )
+ code += `\n${compiledScript.content}`
275
276
if ((descriptor.script || descriptor.scriptSetup)!.lang === 'ts') {
277
code = await transformTS(code)
0 commit comments