@shipengine/connect
Version:
The official developer tooling for building ShipEngine connect apps
33 lines (31 loc) • 703 B
JavaScript
const path = require("path");
module.exports = {
target: "node",
entry: {
"rate-shipments": "./src/methods/get-rates/index.<%= _ts ? 'ts' : 'js' %>",
},
mode: "production",
devtool: "inline-source-map",<% if (_ts) { %>
module: {
rules: [
{
test: /\.ts$/,
use: {
loader: "ts-loader",
options: {
configFile: "tsconfig.webpack.json",
},
},
exclude: /node_modules/,
},
],
}, <% } %>
resolve: {
extensions: [<% if (_ts) { %>".ts", <% } %>".js"],
},
output: {
libraryTarget: "commonjs2",
filename: "[name].js",
path: path.resolve(__dirname, "data/<%- _appName %>"),
},
};