fix types & add bun adapater (WIP)

This commit is contained in:
2022-07-26 08:32:33 +00:00
parent f87ab5366e
commit b1558bd9fa
6 changed files with 66 additions and 11 deletions

View File

@ -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;