Skip to content

Commit

Permalink
chore: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 27, 2023
1 parent 12846e0 commit 2d112dd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
3 changes: 0 additions & 3 deletions README.md
Expand Up @@ -85,7 +85,6 @@ export default {

<br></details>


<details>
<summary>Webpack</summary><br>

Expand Down Expand Up @@ -184,7 +183,6 @@ module.exports = {

<br></details>


<details>
<summary>esbuild</summary><br>

Expand All @@ -205,7 +203,6 @@ build({

<br></details>


<details>
<summary>Astro</summary><br>

Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -154,10 +154,10 @@
"@vueuse/core": "*"
},
"peerDependenciesMeta": {
"@vueuse/core": {
"@nuxt/kit": {
"optional": true
},
"@nuxt/kit": {
"@vueuse/core": {
"optional": true
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Expand Up @@ -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'
*/
Expand Down
22 changes: 11 additions & 11 deletions test/__snapshots__/transform.test.ts.snap
Expand Up @@ -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
"
`;
Expand Down Expand Up @@ -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");
"
`;
Expand Down Expand Up @@ -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')
\`)
Expand Down Expand Up @@ -236,7 +236,7 @@ const z = \`bar-\${ref()}\`
exports[`transform > template-ref.vue 1`] = `
"import { ref } from 'vue';
<template>
<div ref=\\"divRef\\"></div>
<div ref="divRef"></div>
</template>
<script setup>
Expand Down Expand Up @@ -268,6 +268,6 @@ exports[`transform-vue-macro > notexisting.ts 1`] = `
const test2 = /[;$]/
const test3 = /($)/gim.test('a')
const test4 = /[$]/gim
const test5 = /[\\\\/$]/gim
const test5 = /[\\/$]/gim
"
`;

0 comments on commit 2d112dd

Please sign in to comment.