refactor(code-runtime): name the Node runtime provider

This commit is contained in:
Tianyi Cui committed 2026-09-12 15:03:01 +08:00
1 parent b35a3b29eb
commit f95f7ec8dc
68 files changed
+138 -138

No files matched your search

@@ -0,0 +1,29 @@
import { defineConfig } from 'tsdown'
/**
* Build the index and worker as separate single-entry bundles. The sibling `worker.cjs` is loaded
* by file and must be CommonJS for pkg's VFS Worker hook. A multi-entry build emits an unlisted
* shared chunk omitted by the package's exact `files` whitelist; separate builds inline it.
*/
export default defineConfig([
{
entry: ['lib/types/index.js'],
outDir: 'lib',
format: ['esm'],
platform: 'node',
target: 'es2024',
fixedExtension: false,
dts: false,
clean: false,
},
{
entry: ['lib/types/worker.js'],
outDir: 'lib',
format: ['cjs'],
platform: 'node',
target: 'es2024',
fixedExtension: false,
dts: false,
clean: false,
},
])