mirror of
https://github.com/honojs/hono.git
synced 2024-11-25 13:19:30 +01:00
d5280a1e0a
* feat: Basic-auth with polyfill Basic auth support Fastly Compute@Edge with polyfills * Try-cache * Add negative tests
24 lines
514 B
JavaScript
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',
|
|
}
|