vue.runtime.esm-bundler.js 805 B

1234567891011121314151617181920212223242526
  1. import { setDevtoolsHook, initCustomFormatter, warn } from '@vue/runtime-dom';
  2. export * from '@vue/runtime-dom';
  3. import { getGlobalThis } from '@vue/shared';
  4. function initDev() {
  5. const target = getGlobalThis();
  6. target.__VUE__ = true;
  7. setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__);
  8. {
  9. initCustomFormatter();
  10. }
  11. }
  12. // This entry exports the runtime only, and is built as
  13. if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {
  14. initDev();
  15. }
  16. const compile = () => {
  17. if ((process.env.NODE_ENV !== 'production')) {
  18. warn(`Runtime compilation is not supported in this build of Vue.` +
  19. (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
  20. ) /* should not happen */);
  21. }
  22. };
  23. export { compile };