mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 15:48:10 +00:00
35 lines
724 B
JavaScript
35 lines
724 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
context: process.cwd(),
|
|
mode: "production",
|
|
entry: "./src/index.ts",
|
|
devtool: "inline-source-map",
|
|
output: {
|
|
path: path.resolve(__dirname, "dist", "es5"),
|
|
filename: "[name].js",
|
|
library: "AdyenTerminalApi",
|
|
libraryTarget: "umd",
|
|
umdNamedDefine: true
|
|
},
|
|
optimization: {
|
|
splitChunks: {
|
|
chunks: "all"
|
|
}
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts?$/,
|
|
use: [{
|
|
loader: "ts-loader",
|
|
}]
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: [".ts", ".js"]
|
|
},
|
|
target: "node"
|
|
};
|