mirror of
https://github.com/LukeHagar/crossws.git
synced 2025-12-09 12:27:45 +00:00
build: externalize uWebSockets.js
This commit is contained in:
@@ -6,7 +6,7 @@ export default defineBuildConfig({
|
|||||||
rollup: {
|
rollup: {
|
||||||
inlineDependencies: true,
|
inlineDependencies: true,
|
||||||
},
|
},
|
||||||
externals: ["@cloudflare/workers-types", "bun", "@deno/types"],
|
externals: ["@cloudflare/workers-types", "bun", "@deno/types", "uWebSockets.js"],
|
||||||
hooks: {
|
hooks: {
|
||||||
async "build:done"(ctx) {
|
async "build:done"(ctx) {
|
||||||
const entries = Object.keys(ctx.pkg.exports || {})
|
const entries = Object.keys(ctx.pkg.exports || {})
|
||||||
|
|||||||
Reference in New Issue
Block a user