Closed black7375 closed 3 months ago
The current bundling settings are incorrect. For Node.js library packages, you don't need to include all dependencies.
Should be support both ESM and CJS. The files are formatted as follows:
// CJS TS must be specified as `cts` { "type": "module", "exports": { ".": { "require": { "types": "./index.d.cts", "default": "./index.cjs" }, "import": { "types": "./index.d.ts", "default": "./index.js" } } } }
I want to use debugLog as a vite plugin.
debugLog
if (import.meta.vitest) { const { describe, it, expect } = import.meta.vitest; const { jsonLog } = import.meta.debugLog; describe.concurrent("testSuite", () => { jsonLog({ a: 1 }); // will be test }); }
Description
1. Dependency
The current bundling settings are incorrect. For Node.js library packages, you don't need to include all dependencies.
2. Modueles
Should be support both ESM and CJS. The files are formatted as follows:
3. Vite plugin for debugLog
I want to use
debugLog
as a vite plugin.