Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit d06aac7

Browse files
committed
style: fix format in vapor
1 parent dce5547 commit d06aac7

File tree

9 files changed

+27
-22
lines changed

9 files changed

+27
-22
lines changed

packages/vue-vapor/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './index.js'
1+
export * from './index.js'

packages/vue-vapor/src/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function initDev() {
66
if (!__ESM_BUNDLER__) {
77
console.info(
88
`You are running a development build of Vue.\n` +
9-
`Make sure to use the production build (*.prod.js) when deploying for production.`
9+
`Make sure to use the production build (*.prod.js) when deploying for production.`,
1010
)
1111
}
1212

packages/vue-vapor/src/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const compile = () => {
2020
? ` Use "vue-vapor.esm-browser.js" instead.`
2121
: __GLOBAL__
2222
? ` Use "vue-vapor.global.js" instead.`
23-
: ``) /* should not happen */
23+
: ``) /* should not happen */,
2424
)
2525
}
2626
}

playground/setup/dev.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export function DevPlugin({ browser = false } = {}) {
3434
'@vue/compiler-ssr': resolve('compiler-ssr/src'),
3535

3636
'@vue/reactivity': resolve('reactivity/src'),
37-
'@vue/shared': resolve('shared/src')
38-
}
37+
'@vue/shared': resolve('shared/src'),
38+
},
3939
},
4040
define: {
4141
__COMMIT__: `"__COMMIT__"`,
@@ -59,9 +59,9 @@ export function DevPlugin({ browser = false } = {}) {
5959
// feature flags
6060
__FEATURE_SUSPENSE__: `true`,
6161
__FEATURE_OPTIONS_API__: `true`,
62-
__FEATURE_PROD_DEVTOOLS__: `false`
63-
}
62+
__FEATURE_PROD_DEVTOOLS__: `false`,
63+
},
6464
}
65-
}
65+
},
6666
}
6767
}

playground/setup/vite.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ startVite(
88
{ plugins: [DevPlugin()] },
99
{
1010
deps: {
11-
inline: ['@vitejs/plugin-vue']
12-
}
13-
}
11+
inline: ['@vitejs/plugin-vue'],
12+
},
13+
},
1414
)

playground/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
computed,
55
onMounted,
66
onBeforeMount,
7-
getCurrentInstance
7+
getCurrentInstance,
88
} from 'vue/vapor'
99
1010
const instance = getCurrentInstance()!

playground/src/directive.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const vDirective: ObjectDirective<HTMLDivElement, undefined> = {
1616
},
1717
mounted(node) {
1818
if (node.parentElement) node.textContent += 'mounted, '
19-
}
19+
},
2020
}
2121
const vDirectiveSimple: FunctionDirective<HTMLDivElement> = (node, binding) => {
2222
console.log(node, binding)

playground/src/scheduler.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<script setup lang="ts">
2-
import { onEffectCleanup, ref, watch, watchEffect, watchPostEffect, watchSyncEffect } from 'vue/vapor'
2+
import {
3+
onEffectCleanup,
4+
ref,
5+
watch,
6+
watchEffect,
7+
watchPostEffect,
8+
watchSyncEffect,
9+
} from 'vue/vapor'
310
411
const source = ref(0)
512
const add = () => source.value++
@@ -39,9 +46,7 @@ const onUpdate = (arg: any) => {
3946
<div>
4047
<p>Please check the console</p>
4148
<div>
42-
<button @click="add">
43-
Add
44-
</button>
49+
<button @click="add">Add</button>
4550
|
4651
<span>{{ onUpdate(source) }}</span>
4752
</div>

playground/vite.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ import * as CompilerSFC from '@vue/compiler-sfc'
77

88
export default defineConfig({
99
build: {
10-
target: 'esnext'
10+
target: 'esnext',
1111
},
1212
clearScreen: false,
1313
plugins: [
1414
Vue({
1515
template: {
16-
compiler: CompilerVapor as any
16+
compiler: CompilerVapor as any,
1717
},
18-
compiler: CompilerSFC
18+
compiler: CompilerSFC,
1919
}),
2020
DevPlugin(),
21-
Inspect()
22-
]
21+
Inspect(),
22+
],
2323
})

0 commit comments

Comments
 (0)