dom-to-code
Version:
navigate to the code through the dom
32 lines (27 loc) • 976 B
JavaScript
Object.defineProperty(exports, '__esModule', { value: true });
const unplugin = require('./shared/dom-to-code.26f38719.cjs');
require('@rollup/pluginutils');
require('unplugin');
require('./shared/dom-to-code.cf835144.cjs');
require('@babel/core');
require('magic-string');
require('./shared/dom-to-code.401158b7.cjs');
require('@vue/compiler-dom');
require('@vue/babel-plugin-jsx');
require('@babel/plugin-transform-typescript');
require('@babel/plugin-syntax-import-meta');
require('launch-editor');
require('./shared-utils.cjs');
require('path');
const domToCodePlugin = function(options) {
this.extendBuild((config) => {
config.plugins = config.plugins || [];
config.plugins.unshift(unplugin.unplugin.webpack(options));
});
this.nuxt.hook("vite:extend", async (vite) => {
vite.config.plugins = vite.config.plugins || [];
vite.config.plugins.push(unplugin.unplugin.vite(options));
});
};
exports.domToCodePlugin = domToCodePlugin;
;