UNPKG

slightning-coco-widget--webpack

Version:

SLIGHTNING 的 CoCo 控件框架 —— webpack 相关工具。

31 lines (30 loc) 789 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.config = void 0; const loaders_1 = __importDefault(require("./loaders")); const wrapper_plugin_1 = require("./plugin/wrapper-plugin"); exports.config = { output: { library: { type: "commonjs" } }, module: { rules: [ { test: /\.(j|t)sx?$/, use: loaders_1.default.BypassRestrictionsLoader, } ] }, externals: { react: "var React" }, plugins: [ new wrapper_plugin_1.WrapperPlugin() ] }; exports.default = exports.config;