Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: set module to esnext in tsconfig.json #7256

Merged
merged 2 commits into from
May 21, 2021
Merged

chore: set module to esnext in tsconfig.json #7256

merged 2 commits into from
May 21, 2021

Conversation

jackfranklin
Copy link
Contributor

The main tsconfig.json file is only used for API Extractor, and by
VSCode to provide type information. It is not used to compile
Puppeteer for shipping. Therefore we can specify module: "esnext" in
here so that VSCode knows we can use all the latest and greatest
module features (primarily, dynamic imports). In tsconfig.cjs.json
and tsconfig.esm.json we set the module setting for CJS/ESM
respectively.

The main `tsconfig.json` file is only used for API Extractor, and by
VSCode to provide type information. It is _not_ used to compile
Puppeteer for shipping. Therefore we can specify `module: "esnext"` in
here so that VSCode knows we can use all the latest and greatest
module features (primarily, dynamic imports). In `tsconfig.cjs.json`
and `tsconfig.esm.json` we set the `module` setting for CJS/ESM
respectively.
@mathiasbynens mathiasbynens enabled auto-merge (squash) May 20, 2021 10:05
@mathiasbynens mathiasbynens merged commit 8340cb7 into main May 21, 2021
@mathiasbynens mathiasbynens deleted the ts-target branch May 21, 2021 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants