2021-03-01 18:47:07 -08:00
|
|
|
var webpack = require('webpack');
|
2021-03-02 01:20:21 -08:00
|
|
|
var libraryName = 'pawsqlite';
|
2021-03-01 18:47:07 -08:00
|
|
|
var outputFile = libraryName + '.js';
|
|
|
|
|
|
|
|
var config = {
|
|
|
|
mode: 'development',
|
2021-03-14 21:15:26 -07:00
|
|
|
entry: __dirname + '/src/pawsqlite_cjs.mjs',
|
2021-03-01 18:47:07 -08:00
|
|
|
devtool: 'source-map',
|
|
|
|
output: {
|
2021-03-14 21:15:26 -07:00
|
|
|
path: __dirname + '/cjs',
|
2021-03-01 18:47:07 -08:00
|
|
|
filename: outputFile,
|
|
|
|
libraryExport: 'default',
|
|
|
|
libraryTarget: 'commonjs2',
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|