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: {
|
2021-03-14 21:46:25 -07:00
|
|
|
path: __dirname + '/cjs',
|
2021-03-02 23:16:52 -08:00
|
|
|
filename: outputFile,
|
2021-03-14 21:46:25 -07:00
|
|
|
libraryExport: 'PawSQLiteNodeAdapter',
|
2021-03-02 23:16:52 -08:00
|
|
|
libraryTarget: 'commonjs2',
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|