runtime.ts 700 B

1234567891011121314151617181920212223
  1. // This entry exports the runtime only, and is built as
  2. // `dist/vue.esm-bundler.js` which is used by default for bundlers.
  3. import { initDev } from './dev'
  4. import { warn } from '@vue/runtime-dom'
  5. __DEV__ && initDev()
  6. export * from '@vue/runtime-dom'
  7. export const compile = () => {
  8. if (__DEV__) {
  9. warn(
  10. `Runtime compilation is not supported in this build of Vue.` +
  11. (__ESM_BUNDLER__
  12. ? ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
  13. : __ESM_BROWSER__
  14. ? ` Use "vue.esm-browser.js" instead.`
  15. : __GLOBAL__
  16. ? ` Use "vue.global.js" instead.`
  17. : ``) /* should not happen */
  18. )
  19. }
  20. }