28 lines
551 B
JavaScript
28 lines
551 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
mode: "production",
|
|
// mode: 'development',
|
|
entry: "./build/index.js",
|
|
// devtool: "inline-source-map",
|
|
target: "web",
|
|
// module: {
|
|
// rules: [
|
|
// {
|
|
// test: /\.ts?$/,
|
|
// use: "ts-loader"
|
|
// },
|
|
// ],
|
|
// },
|
|
// resolve: {
|
|
// extensions: [".tsx", ".ts", ".js"],
|
|
// },
|
|
output: {
|
|
path: path.resolve(__dirname, "dist"),
|
|
filename: "index.js",
|
|
library: "jcwallet",
|
|
libraryTarget: "commonjs2",
|
|
// libraryTarget: "window",
|
|
},
|
|
};
|