PawSQLite-Node-Adapter/webpack.config.js
2021-03-14 21:46:25 -07:00

21 lines
445 B
JavaScript

var webpack = require('webpack');
var libraryName = 'pawsqlite-node-adapter';
var outputFile = libraryName + '.js';
var config = {
mode: 'development',
entry: __dirname + '/src/node_adapter.mjs',
devtool: 'source-map',
externals: {
sqlite3: 'sqlite3'
},
output: {
path: __dirname + '/cjs',
filename: outputFile,
libraryExport: 'PawSQLiteNodeAdapter',
libraryTarget: 'commonjs2',
}
};
module.exports = config;