Closed cometkim closed 1 month ago
Also it should closes #113
mocha's ESM Resolver doesn't seem to respect
It does, but it doesn't correctly resolve source in TypeScriptexports
correctly
Note: multi-input bundle output is broken on rollup@v3
Hmm, PnP doesn't work with TS 4.9?
Any chance of getting merged? maybe it should be the next major?
Failed to test on TS v5 and Yarn 3.5.0 :/
Looks good! Would also help with #147.
@arcanis cleaned up to be minimal changeset to support NodeJS/TypeScript ESM
I added e2e.test.ts
for ensure Node ESM import and TypeScript configuration work, which is failed without those changes. I tried to make as few changes as possible to fix it.
This is currently the only configuration that is compatible with node
, tsc
, and @rollup/plugin-node-resolve
.
This is re-trying PR from https://github.com/arcanis/clipanion/pull/137
Tested on Node v16 with TypeScript v3.8, both CommonJS and ESM
node index.mjs test
: OKnode index.cjs test
OKNote this PR will drop support for Node v14