mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
17 lines
357 B
JavaScript
17 lines
357 B
JavaScript
import webpack from 'webpack'
|
|
|
|
export default {
|
|
mode: 'production',
|
|
entry: './src/index.mjs',
|
|
output: {
|
|
filename: 'webpack-cloudflare.js',
|
|
},
|
|
resolve: { conditionNames: ['import', 'cloudflare'] },
|
|
plugins: [
|
|
// ignore cloudflare:sockets imports
|
|
new webpack.IgnorePlugin({
|
|
resourceRegExp: /^cloudflare:sockets$/,
|
|
}),
|
|
],
|
|
}
|