[新增]wxmlToCanvas
This commit is contained in:
25
node_modules/widget-ui/webpack.config.js
generated
vendored
Normal file
25
node_modules/widget-ui/webpack.config.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
mode: "production",
|
||||
entry: path.resolve(__dirname, "src/element.ts"),
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
use: "ts-loader",
|
||||
exclude: /node_modules/
|
||||
}
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".js", ".ts"]
|
||||
},
|
||||
output: {
|
||||
filename: "index.js",
|
||||
path: path.resolve(__dirname, "dist"),
|
||||
libraryTarget: "umd", // 采用通用模块定义
|
||||
libraryExport: "default", // 兼容 ES6(ES2015) 的模块系统、CommonJS 和 AMD 模块规范
|
||||
globalObject: "this" // 兼容node和浏览器运行,避免window is not undefined情况
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user