]> git.codecow.com Git - libnemo.git/commitdiff
Reorganize polyfills again.
authorChris Duncan <chris@zoso.dev>
Mon, 15 Sep 2025 21:08:26 +0000 (14:08 -0700)
committerChris Duncan <chris@zoso.dev>
Mon, 15 Sep 2025 21:08:26 +0000 (14:08 -0700)
esbuild/config.mjs
esbuild/inject/buffer.mjs [moved from esbuild/inject-buffer.mjs with 100% similarity]
esbuild/inject/fake-indexeddb.mjs [moved from esbuild/inject-fake-indexeddb.mjs with 100% similarity]
package.json

index 7dc43fee2983bc331982566eb33894501c472a29..c8abe39c0f0b46dc1bd1305a299841263286968a 100644 (file)
@@ -28,7 +28,7 @@ export const browserOptions = {
                { in: './src/types.d.ts', out: 'types.d' }
        ],
        dropLabels: ['NODE'],
-       inject: ['./polyfill/buffer.mjs']
+       inject: ['./esbuild/inject/buffer.mjs']
 }
 
 /**
@@ -43,7 +43,7 @@ export const iifeOptions = {
                { in: './src/types.d.ts', out: 'types.d' }
        ],
        dropLabels: ['NODE'],
-       inject: ['./polyfill/buffer.mjs']
+       inject: ['./esbuild/inject/buffer.mjs']
 }
 
 /**
@@ -57,5 +57,5 @@ export const nodeOptions = {
        ],
        dropLabels: ['BROWSER'],
        external: ['node:worker_threads'],
-       inject: ['./polyfill/fake-indexeddb.mjs']
+       inject: ['./esbuild/inject/fake-indexeddb.mjs']
 }
index d07cc6cc515cd0e9c33c6bbc22e32f9a78e1e335..affacca23d736fac1cc8ec25b38e9ef7bc510e74 100644 (file)
@@ -44,8 +44,8 @@
        },
        "scripts": {
                "clean": "rm -rf dist types && tsc",
-               "build": "npm run clean && node esbuild/esbuild.mjs",
-               "build:prod": "npm run clean && node esbuild/esbuild-prod.mjs",
+               "build": "npm run clean && node esbuild/build-dev.mjs",
+               "build:prod": "npm run clean && node esbuild/build-prod.mjs",
                "prepublishOnly": "npm run test:prod",
                "reinstall": "rm -rf node_modules package-lock.json && npm cache clean --force && npm i",
                "test": "npm run build && npm run test:node",