slightning-coco-widget--webpack
Version:
SLIGHTNING 的 CoCo 控件框架 —— webpack 相关工具。
25 lines (24 loc) • 487 B
JavaScript
import Loaders from "./loaders";
import { WrapperPlugin } from "./plugin/wrapper-plugin";
export const config = {
output: {
library: {
type: "commonjs"
}
},
module: {
rules: [
{
test: /\.(j|t)sx?$/,
use: Loaders.BypassRestrictionsLoader,
}
]
},
externals: {
react: "var React"
},
plugins: [
new WrapperPlugin()
]
};
export default config;