diff --git a/packages/playground/vue/Main.vue b/packages/playground/vue/Main.vue index bf491f9a71e9af..a65c9d7480920e 100644 --- a/packages/playground/vue/Main.vue +++ b/packages/playground/vue/Main.vue @@ -19,6 +19,7 @@ + diff --git a/packages/playground/vue/setup-import-template/template.html b/packages/playground/vue/setup-import-template/template.html new file mode 100644 index 00000000000000..414069f2e9e929 --- /dev/null +++ b/packages/playground/vue/setup-import-template/template.html @@ -0,0 +1,2 @@ +

Setup Import Template

+ diff --git a/packages/plugin-vue/src/main.ts b/packages/plugin-vue/src/main.ts index 9ddb73ea61c078..ef82b3a05551d2 100644 --- a/packages/plugin-vue/src/main.ts +++ b/packages/plugin-vue/src/main.ts @@ -10,7 +10,7 @@ import { } from './utils/descriptorCache' import { PluginContext, SourceMap, TransformPluginContext } from 'rollup' import { normalizePath } from '@rollup/pluginutils' -import { resolveScript } from './script' +import { resolveScript, isUseInlineTemplate } from './script' import { transformTemplateInMain } from './template' import { isOnlyTemplateChanged, isEqualBlock } from './handleHotUpdate' import { RawSourceMap, SourceMapConsumer, SourceMapGenerator } from 'source-map' @@ -53,14 +53,7 @@ export async function transformMain( ) // template - // Check if we can use compile template as inlined render function - // inside