index.js 1.1 KB

123456789101112131415161718192021222324252627
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.transformAssetUrls = void 0;
  4. const loader_shared_1 = require("@vuetify/loader-shared");
  5. Object.defineProperty(exports, "transformAssetUrls", { enumerable: true, get: function () { return loader_shared_1.transformAssetUrls; } });
  6. const importPlugin_1 = require("./importPlugin");
  7. const stylesPlugin_1 = require("./stylesPlugin");
  8. function vuetify(_options = {}) {
  9. const options = {
  10. autoImport: true,
  11. styles: true,
  12. stylesTimeout: 1000,
  13. ..._options,
  14. };
  15. const plugins = [];
  16. if (options.autoImport) {
  17. plugins.push((0, importPlugin_1.importPlugin)());
  18. }
  19. if ((0, loader_shared_1.includes)(['none', 'expose', 'sass'], options.styles) || (0, loader_shared_1.isObject)(options.styles)) {
  20. plugins.push((0, stylesPlugin_1.stylesPlugin)(options));
  21. }
  22. return plugins;
  23. }
  24. module.exports = vuetify;
  25. exports.default = vuetify;
  26. module.exports.transformAssetUrls = loader_shared_1.transformAssetUrls;
  27. //# sourceMappingURL=index.js.map