UNPKG

taro-plugin-pinia

Version:

Taro&vue3 支持使用 Pinia 进行状态管理的插件

21 lines 780 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); exports.default = (ctx) => { ctx.modifyWebpackChain(({ chain }) => { const { runOpts, helper } = ctx; const { options } = runOpts; if (options.platform !== helper.PLATFORMS.H5) { chain.plugin('providerPlugin').tap(args => { return [Object.assign(Object.assign({}, (args[0] || {})), { HTMLAnchorElement: [path.resolve(__dirname, './constructor.js'), 'HTMLAnchorElement'] })]; }); } chain.module .rule("mjs") .test(/\.mjs$/) .type("javascript/auto") .include.add(/node_modules/) .end(); }); }; //# sourceMappingURL=index.js.map