compiler.js 580 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.compiler = void 0;
  4. try {
  5. // Vue 3.2.13+ ships the SFC compiler directly under the `vue` package
  6. // making it no longer necessary to have @vue/compiler-sfc separately installed.
  7. exports.compiler = require('vue/compiler-sfc');
  8. }
  9. catch (e) {
  10. try {
  11. exports.compiler = require('@vue/compiler-sfc');
  12. }
  13. catch (e) {
  14. throw new Error(`@vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc ` +
  15. `to be present in the dependency tree.`);
  16. }
  17. }