mirror of
https://github.com/186526/handlers.js
synced 2024-10-13 00:29:43 +00:00
fix types & add bun adapater (WIP)
This commit is contained in:
@ -81,12 +81,20 @@ export default () => {
|
||||
'Promise': 'bluebird'
|
||||
})
|
||||
)
|
||||
break;
|
||||
case "bun":
|
||||
config.mode = "production";
|
||||
config.target = "node12";
|
||||
config.output.filename = "main.bun.js";
|
||||
break;
|
||||
case "deno:test":
|
||||
config.target = "webworker";
|
||||
config.output.filename = "test.deno.js";
|
||||
config.entry = "./test/test-server.deno.ts";
|
||||
break;
|
||||
default:
|
||||
config.target = "es6";
|
||||
break;
|
||||
}
|
||||
|
||||
return config;
|
||||
|
Reference in New Issue
Block a user