mirror of
https://github.com/quepasaevents/qpa-client.git
synced 2023-12-14 05:33:02 +01:00
25 lines
No EOL
464 B
JavaScript
25 lines
No EOL
464 B
JavaScript
const path = require('path')
|
|
const nodeExternals = require('webpack-node-externals');
|
|
|
|
|
|
module.exports = {
|
|
entry: './src/index.ts',
|
|
target: 'node',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: ['.ts']
|
|
},
|
|
output: {
|
|
filename: 'index.js', // <-- Important
|
|
libraryTarget: 'this' // <-- Important
|
|
},
|
|
externals: [nodeExternals()]
|
|
}; |