File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,28 @@ export default defineConfig({
146
146
"
147
147
`;
148
148
149
+ exports[`transform fixtures test/fixtures/AsyncImport.vue 1`] = `
150
+ " <script lang =\\"ts\\">
151
+ import { defineAsyncComponent } from ' script-setup' ;
152
+ const ScriptOnly = defineAsyncComponent(() => import('./ScriptOnly.vue'));
153
+ const __sfc_main = { } ;
154
+
155
+ __sfc_main.setup = (__props, __ctx) => {
156
+ return {};
157
+ } ;
158
+
159
+ __sfc_main.components = Object.assign({
160
+ ScriptOnly
161
+ }, __sfc_main.components);
162
+ export default __sfc_main;
163
+ </script>
164
+
165
+ <template>
166
+ <ScriptOnly />
167
+ </template>
168
+ "
169
+ ` ;
170
+
149
171
exports [` transform fixtures test/fixtures/DynamicStyle.vue 1` ] = `
150
172
"<template >
151
173
<div :style=\\"{ color, border: ' 1px' }\\" />
Original file line number Diff line number Diff line change
1
+ <script setup lang="ts">
2
+ import { defineAsyncComponent } from ' script-setup'
3
+ const ScriptOnly = defineAsyncComponent (() => import (' ./ScriptOnly.vue' ))
4
+ </script >
5
+
6
+ <template >
7
+ <ScriptOnly />
8
+ </template >
You can’t perform that action at this time.
0 commit comments