I'ld like to use tsup
to transpile the WebdriverIO project into ESM and CJS exports. I see the following issue: given I a module with the following import:
import moduleA from './moduleA.js'
Now when I transpile the code into file.js
(ESM) and file.cjs
(CJS) the file.cjs
will have the following transpiled code:
var import_moduleA = require("./moduleA.js");
which points to the ESM version.
What is the recommended way to setup tsup to allow both exports? Note that bundling into a single file is not an option.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too