| 1234567891011121314151617181920212223242526272829 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.uniH5Plugin = void 0;
- const handleHotUpdate_1 = require("./handleHotUpdate");
- const transformIndexHtml_1 = require("./transformIndexHtml");
- const configureServer_1 = require("./configureServer");
- const uni_1 = require("./uni");
- const polyfill_1 = require("./polyfill");
- const config_1 = require("./config");
- function uniH5Plugin() {
- const configOptions = {
- resolvedConfig: null,
- };
- if (process.env.UNI_APP_X === 'true') {
- (0, polyfill_1.rewriteCompileScriptOnce)();
- }
- return {
- name: 'uni:h5',
- uni: (0, uni_1.createUni)(),
- config: (0, config_1.createConfig)(configOptions),
- configResolved(config) {
- configOptions.resolvedConfig = config;
- },
- configureServer: (0, configureServer_1.createConfigureServer)(),
- handleHotUpdate: (0, handleHotUpdate_1.createHandleHotUpdate)(),
- transformIndexHtml: (0, transformIndexHtml_1.createTransformIndexHtml)(),
- };
- }
- exports.uniH5Plugin = uniH5Plugin;
|