29 lines
548 B
JavaScript
29 lines
548 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
mode: "production",
|
|
// mode: 'development',
|
|
// entry: "./build/index.js",
|
|
entry: "./src/index.ts",
|
|
// 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",
|
|
},
|
|
};
|