youtrack-cert-updater/webpack.config.js

29 lines
608 B
JavaScript
Raw Permalink Normal View History

2024-03-17 01:40:38 +08:00
import { dirname } from 'path';
import { fileURLToPath } from 'url';
/**
* @type import("webpack").Configuration
*/
export default {
target: "node",
entry: "./src/app.ts",
output: {
path: dirname(fileURLToPath(import.meta.url)),
filename: "dist/app.cjs",
chunkFormat: false
},
resolve: {
extensions: [".js", ".ts"]
},
module: {
rules: [
{
test: /\.(?:js|ts)$/,
exclude: /node_modules/,
use: [
"babel-loader"
]
}
]
}
}