Skip to content

Commit 2220375

Browse files
committed
fix(sandbox): remove ./sandbox export and build — native plugins use entrypoint directly
The sandbox entry cannot be made isolate-safe: keeping emdash external leaves an unresolvable peer dep in the isolate; bundling it pulls in node:crypto, node:module, and virtual:emdash/* which are equally unavailable. The export is unused — native plugins are loaded via the descriptor entrypoint, not ./sandbox.
1 parent 4e01737 commit 2220375

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
"./admin": {
1616
"types": "./dist/admin.d.mts",
1717
"import": "./dist/admin.mjs"
18-
},
19-
"./sandbox": {
20-
"import": "./dist/sandbox-entry.mjs"
2118
}
2219
},
2320
"files": [

tsdown.config.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,4 @@ export default defineConfig([
2626
external: ['react', 'react/jsx-runtime', 'react-dom', 'emdash', /^@emdash-cms\//],
2727
outDir: 'dist',
2828
},
29-
// Sandbox entry — fully self-contained ES module for Cloudflare Worker Loader
30-
// No external imports; everything must be inlined for the isolate.
31-
{
32-
entry: { 'sandbox-entry': 'src/index.ts' },
33-
format: 'esm',
34-
dts: false,
35-
noExternal: [/.*/],
36-
outDir: 'dist',
37-
},
3829
]);

0 commit comments

Comments
 (0)