tsconfig / bases

Hosts TSConfigs to extend in a TypeScript app, tuned to a particular runtime environment
MIT License
6.33k stars 237 forks source link

README instructions about ESM is invalid #224

Closed markuskullberg-sanoma closed 1 year ago

markuskullberg-sanoma commented 1 year ago

The README states that:

What about @tsconfig/esm? We deprecated it in favour of setting https://github.com/tsconfig/bases/pull/197 to node/bundler.

However, TS complains about that combination Option 'bundler' can only be used when 'module' is set to 'es2015' or later.:

Screenshot 2023-10-05 at 10 40 32

What is the correct combination for a Node project that uses a bundler? For example, Node lambdas are often packaged with esbuild, so this should be quite a common thing.

orta commented 1 year ago

Afraid I don't have the time to walk people through their tsconfig setups, you're welcome to ask on stack overflow