rayjs/bindings/webpack.config.js

25 lines
454 B
JavaScript
Raw Normal View History

2023-05-06 21:43:40 +00:00
const path = require('path');
module.exports = {
entry: './src/index.ts',
devtool: false,
target: "node",
mode: 'production',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'generate-bindings.js',
path: path.resolve(__dirname, '..'),
},
};