diff --git a/src/core/transform.ts b/src/core/transform.ts
index ad3ad31..06853c5 100644
--- a/src/core/transform.ts
+++ b/src/core/transform.ts
@@ -6,7 +6,7 @@ import { transformScriptSetup } from './transformScriptSetup'
import { transformSfcRefSugar } from './transformSfcRefSugar'
import { resolveOptions } from './options'
-const scriptSetupRE = /`,
+ ``,
+ ``,
+ `
+ `,
+ `
+ `,
+ `
+ `,
+ ``,
+ ]
+
+ for (const input of cases) {
+ it(input, () => {
+ expect(scriptSetupRE.test(input)).toEqual(true)
+ })
+ }
+ })
+
+ describe('filter what is not needed by regular ', () => {
+ const cases: string[] = [
+ `
+ import HelloWorld from './HelloWorld.vue'
+
+ `,
+ ``,
+ `
+ `,
+ ]
+
+ for (const input of cases) {
+ it(input, () => {
+ expect(scriptSetupRE.test(input)).toEqual(false)
+ })
+ }
+ })
+})