mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-23 15:49:42 -04:00
33 lines
721 B
JavaScript
33 lines
721 B
JavaScript
const path = require('path');
|
|
const nodeExternals = require('webpack-node-externals');
|
|
|
|
/** @type { import('webpack').Configuration } */
|
|
module.exports = {
|
|
entry: { index: './src/index.ts' },
|
|
target: 'node',
|
|
mode: 'development',
|
|
devtool: 'source-map',
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: '[name].js',
|
|
library: 'insomniapluginjsonpath',
|
|
libraryTarget: 'commonjs2',
|
|
},
|
|
externals: [nodeExternals()],
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
loader: 'ts-loader',
|
|
exclude: [/node_modules/],
|
|
options: {
|
|
configFile: 'tsconfig.build.json',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['.ts', '.js'],
|
|
},
|
|
};
|