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.
This commit is contained in:
Mofei Zhang
2023-12-05 17:22:37 -05:00
parent 1d36764ca9
commit 346350f77d

View File

@@ -1,7 +1,6 @@
{
"extends": "@tsconfig/node18-strictest/tsconfig.json",
"compilerOptions": {
"module": "NodeNext",
"moduleResolution": "NodeNext",
"declaration": true,
"declarationDir": "./dist",