vue.runtime.esm-bundler.js 887 B

12345678910111213141516171819202122232425
  1. import { setDevtoolsHook, 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. console.info(`You are running a development build of Vue.\n` +
  10. `Make sure to use the production build (*.prod.js) when deploying for production.`);
  11. }
  12. }
  13. // This entry exports the runtime only, and is built as
  14. (process.env.NODE_ENV !== 'production') && initDev();
  15. const compile = () => {
  16. if ((process.env.NODE_ENV !== 'production')) {
  17. warn(`Runtime compilation is not supported in this build of Vue.` +
  18. ( ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
  19. ) /* should not happen */);
  20. }
  21. };
  22. export { compile };