2019-12-17 18:24:01 -05:00
|
|
|
// This entry exports the runtime only, and is built as
|
|
|
|
// `dist/vue.esm-bundler.js` which is used by default for bundlers.
|
2020-07-17 00:18:52 +02:00
|
|
|
import { initDev } from './dev'
|
2020-04-20 15:23:26 -04:00
|
|
|
import { warn } from '@vue/runtime-dom'
|
2019-12-17 18:24:01 -05:00
|
|
|
|
2021-02-24 15:59:38 -05:00
|
|
|
if (__DEV__) {
|
2021-01-06 01:54:43 +08:00
|
|
|
initDev()
|
|
|
|
}
|
2020-07-17 00:18:52 +02:00
|
|
|
|
2019-12-17 18:24:01 -05:00
|
|
|
export * from '@vue/runtime-dom'
|
|
|
|
|
2020-04-20 15:23:26 -04:00
|
|
|
export const compile = () => {
|
|
|
|
if (__DEV__) {
|
|
|
|
warn(
|
|
|
|
`Runtime compilation is not supported in this build of Vue.` +
|
|
|
|
(__ESM_BUNDLER__
|
|
|
|
? ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
|
|
|
|
: __ESM_BROWSER__
|
2021-07-19 18:24:18 -04:00
|
|
|
? ` Use "vue.esm-browser.js" instead.`
|
|
|
|
: __GLOBAL__
|
|
|
|
? ` Use "vue.global.js" instead.`
|
|
|
|
: ``) /* should not happen */
|
2020-04-20 15:23:26 -04:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|