From: Chris Duncan Date: Mon, 15 Sep 2025 20:49:08 +0000 (-0700) Subject: Organize esbuild-injected files to their own directory. X-Git-Tag: v0.10.5~14^2~17 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=74636295e6045416837ed0a78e85b978c128bb7c;p=libnemo.git Organize esbuild-injected files to their own directory. --- diff --git a/esbuild.mjs b/esbuild.mjs index c9635d1..d137718 100644 --- a/esbuild.mjs +++ b/esbuild.mjs @@ -31,7 +31,7 @@ export const iifeOptions = { { in: './src/types.d.ts', out: 'types.d' } ], dropLabels: ['NODE'], - inject: ['./buffer.mjs'] + inject: ['./polyfill/buffer.mjs'] } await build(iifeOptions) @@ -46,7 +46,7 @@ export const browserOptions = { { in: './src/types.d.ts', out: 'types.d' } ], dropLabels: ['NODE'], - inject: ['./buffer.mjs'] + inject: ['./polyfill/buffer.mjs'] } await build(browserOptions) @@ -61,6 +61,6 @@ export const nodeOptions = { ], dropLabels: ['BROWSER'], external: ['node:worker_threads'], - inject: ['./fake-indexeddb.mjs'] + inject: ['./polyfill/fake-indexeddb.mjs'] } await build(nodeOptions) diff --git a/buffer.mjs b/polyfill/buffer.mjs similarity index 100% rename from buffer.mjs rename to polyfill/buffer.mjs diff --git a/fake-indexeddb.mjs b/polyfill/fake-indexeddb.mjs similarity index 100% rename from fake-indexeddb.mjs rename to polyfill/fake-indexeddb.mjs