PawSQLite-Node-Adapter/webpack.config.js

21 lines
432 B
JavaScript
Raw Normal View History

2021-03-02 23:16:52 -08:00
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',
2021-03-04 21:57:37 -08:00
externals: {
sqlite3: 'sqlite3'
},
2021-03-02 23:16:52 -08:00
output: {
path: __dirname + '/lib',
filename: outputFile,
libraryExport: 'default',
libraryTarget: 'commonjs2',
}
};
module.exports = config;