diff --git a/README.md b/README.md index 5434f11..d2d2317 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,6 @@ export default {
-
Webpack
@@ -184,7 +183,6 @@ module.exports = {
-
esbuild
@@ -205,7 +203,6 @@ build({
-
Astro
diff --git a/package.json b/package.json index dc0a4c0..70e84e2 100644 --- a/package.json +++ b/package.json @@ -154,10 +154,10 @@ "@vueuse/core": "*" }, "peerDependenciesMeta": { - "@vueuse/core": { + "@nuxt/kit": { "optional": true }, - "@nuxt/kit": { + "@vueuse/core": { "optional": true } }, diff --git a/src/types.ts b/src/types.ts index 111cccd..13ff55d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -114,7 +114,7 @@ export interface Options { /** * Parser to be used for parsing the source code. - * + * * @see https://github.com/unjs/unimport#acorn-parser * @default 'regex' */ diff --git a/test/__snapshots__/transform.test.ts.snap b/test/__snapshots__/transform.test.ts.snap index 60def22..77bc112 100644 --- a/test/__snapshots__/transform.test.ts.snap +++ b/test/__snapshots__/transform.test.ts.snap @@ -6,15 +6,15 @@ exports[`transform > comments.ts 1`] = ` // import { computed } from 'vue' const a = { - rel: \\"noreferrer\\", - href: \\"https://github.com/antfu/vitesse\\", - target: \\"_blank\\" + rel: "noreferrer", + href: "https://github.com/antfu/vitesse", + target: "_blank" } const foo = ref(0) const bar = computed(() => {}) -const b = { class: \\"text-sm opacity-75\\" }; +const b = { class: "text-sm opacity-75" }; // reactive " `; @@ -93,14 +93,14 @@ const d = watch3(0) exports[`transform > existing6.jsx 1`] = ` "import { computed } from 'vue'; -const a = computed(() => /^(https?:\\\\/\\\\/|\\\\/\\\\/)/.test(props.to)) +const a = computed(() => /^(https?:\\/\\/|\\/\\/)/.test(props.to)) " `; exports[`transform > glob.ts 1`] = ` "import { ref } from 'vue'; -const modules = import.meta.glob(\\"/src/nested/*.vue\\"); -const msg = ref(\\"Global Imports\\"); +const modules = import.meta.glob("/src/nested/*.vue"); +const msg = ref("Global Imports"); " `; @@ -192,9 +192,9 @@ ElMessage.warning('Test') `; exports[`transform > strings.ts 1`] = ` -"console.log(\\"ref(0)\\") +"console.log("ref(0)") console.log(\`ref(\${a})\`) -console.log('ref(\\\\'z\\\\')') +console.log('ref(\\'z\\')') console.log(\` ref('z') \`) @@ -236,7 +236,7 @@ const z = \`bar-\${ref()}\` exports[`transform > template-ref.vue 1`] = ` "import { ref } from 'vue';