-export * from './index.js'
\ No newline at end of file
+export * from './index.js'
if (!__ESM_BUNDLER__) {
console.info(
`You are running a development build of Vue.\n` +
- `Make sure to use the production build (*.prod.js) when deploying for production.`
+ `Make sure to use the production build (*.prod.js) when deploying for production.`,
)
}
? ` Use "vue-vapor.esm-browser.js" instead.`
: __GLOBAL__
? ` Use "vue-vapor.global.js" instead.`
- : ``) /* should not happen */
+ : ``) /* should not happen */,
)
}
}
'@vue/compiler-ssr': resolve('compiler-ssr/src'),
'@vue/reactivity': resolve('reactivity/src'),
- '@vue/shared': resolve('shared/src')
- }
+ '@vue/shared': resolve('shared/src'),
+ },
},
define: {
__COMMIT__: `"__COMMIT__"`,
// feature flags
__FEATURE_SUSPENSE__: `true`,
__FEATURE_OPTIONS_API__: `true`,
- __FEATURE_PROD_DEVTOOLS__: `false`
- }
+ __FEATURE_PROD_DEVTOOLS__: `false`,
+ },
}
- }
+ },
}
}
{ plugins: [DevPlugin()] },
{
deps: {
- inline: ['@vitejs/plugin-vue']
- }
- }
+ inline: ['@vitejs/plugin-vue'],
+ },
+ },
)
computed,
onMounted,
onBeforeMount,
- getCurrentInstance
+ getCurrentInstance,
} from 'vue/vapor'
const instance = getCurrentInstance()!
},
mounted(node) {
if (node.parentElement) node.textContent += 'mounted, '
- }
+ },
}
const vDirectiveSimple: FunctionDirective<HTMLDivElement> = (node, binding) => {
console.log(node, binding)
<script setup lang="ts">
-import { onEffectCleanup, ref, watch, watchEffect, watchPostEffect, watchSyncEffect } from 'vue/vapor'
+import {
+ onEffectCleanup,
+ ref,
+ watch,
+ watchEffect,
+ watchPostEffect,
+ watchSyncEffect,
+} from 'vue/vapor'
const source = ref(0)
const add = () => source.value++
<div>
<p>Please check the console</p>
<div>
- <button @click="add">
- Add
- </button>
+ <button @click="add">Add</button>
|
<span>{{ onUpdate(source) }}</span>
</div>
export default defineConfig({
build: {
- target: 'esnext'
+ target: 'esnext',
},
clearScreen: false,
plugins: [
Vue({
template: {
- compiler: CompilerVapor as any
+ compiler: CompilerVapor as any,
},
- compiler: CompilerSFC
+ compiler: CompilerSFC,
}),
DevPlugin(),
- Inspect()
- ]
+ Inspect(),
+ ],
})