mirror of
https://github.com/zhigang1992/workers-graphql-server.git
synced 2026-01-12 09:43:41 +08:00
23 lines
391 B
JavaScript
23 lines
391 B
JavaScript
// DO NOT convert to ES6
|
|
// wranglerjs/mod.rs can't handle it
|
|
|
|
const path = require('path')
|
|
|
|
module.exports = {
|
|
context: path.resolve(__dirname, './'),
|
|
target: 'webworker',
|
|
mode: 'production',
|
|
optimization: {
|
|
usedExports: true,
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
include: /node_modules/,
|
|
test: /\.mjs$/,
|
|
type: 'javascript/auto',
|
|
},
|
|
],
|
|
},
|
|
}
|