0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-25 13:19:30 +01:00
hono/examples/compute-at-edge/webpack.config.js
Yusuke Wada d5280a1e0a
feat: Basic-auth with polyfill (#86)
* feat: Basic-auth with polyfill

Basic auth support Fastly Compute@Edge with polyfills

* Try-cache

* Add negative tests
2022-02-03 08:40:20 +09:00

24 lines
514 B
JavaScript

const path = require('path')
module.exports = {
entry: './index.js',
optimization: {
minimize: true,
},
target: ['webworker'],
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'bin'),
libraryTarget: 'this',
},
resolve: {
fallback: {
buffer: require.resolve('buffer/'),
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify'),
process: require.resolve('process/browser'),
},
},
mode: 'production',
}