PawSQLite/webpack.config.js

18 lines
377 B
JavaScript
Raw Normal View History

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