Revert: revert tsconfig module change for rollup
--- Currently on main, rollup does not inline source files ```js // in packages/babel-plugin-react-forget // $yarn build // output var CompilerError_1 = require("./CompilerError"); Object.defineProperty(exports, "CompilerError", { enumerable: true, get: function () { return CompilerError_1.CompilerError; } }); // ... ``` I debugged a bit but not familiar with node or rollup. - It seems that rollup fails to recognize source file imports with this setting, as resolveId no longer gets called - current `module` option defaults to `ESNext`, which works for some reason. Let's revert for now to unblock syncs. Sanity checked my repro by reinstalling node-modules and cleaning rollup cache.
Mofei Zhang committed
Dec 5, 2023 at 17:22 UTC
346350f77d2aa73ee7b93edbee2c2b3a4afddfab
1 file changed
-1
compiler/packages/babel-plugin-react-forget/tsconfig.json
-1
@@ -1,7 +1,6 @@
1
{
2
"extends": "@tsconfig/node18-strictest/tsconfig.json",
3
"compilerOptions": {
4
- "module": "NodeNext",
4
"moduleResolution": "NodeNext",
5
"declaration": true,
6
"declarationDir": "./dist",