-
Notifications
You must be signed in to change notification settings - Fork 241
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
Add node-12-esm, node-14-esm and node-16-esm to bases #76
Comments
Are these to use |
node12 for 12, esnext for the others I think |
Does As far as I know,
|
Ah yeah, |
With TypeScript 4.5 and {
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 16 ESM",
"compilerOptions": {
"module": "es2022",
"moduleResolution": "node",
"target": "es2021",
"lib": ["es2021"],
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
} |
that has been delayed, see microsoft/TypeScript#46452 |
No sorry it is not delayed it is integrated and there is no save default stay with node as default is fine use node12 (cjs & es2015 modules aka __esModules = true)if you want to depend on import export filds of package.json files and finally use esnext the most complicated one which adds the same as node12 but out of esm context view. |
Handled by #90 - at least for node 16 |
With Typescript 4.7 introducing "module": "node16" and "nodenext", would it make sense to use the "node16" for Node 16 + ESM and derivative configs? |
@mmykhaylov depends on the packages that the project consumes this sets if if moduleResolution is not configured diffrent also the moduleResolution so everything with a package.json and not propper exports fild will fail. i added a node16 consumer folder as composit project for that case and stick with node as resolve algo for the legacy part my final target is ESNext but you could set it to node16 if you do nodejs only packaging and code. |
@orta what's the meaning of label something like pr are welcomes ? or like do it in your tsconfig ? |
It means PRs are welcome
…On Mon, Apr 10, 2023, 6:04 AM Eric Vantillard ***@***.***> wrote:
@orta <https://github.com/orta> what's the meaning of label you can do
this?
something like *pr are welcomes* ? or like *do it in your tsconfig* ?
—
Reply to this email directly, view it on GitHub
<#76 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC35ODZKTKOKQWWORZOF4TXAPLJ7ANCNFSM5FGKT5MQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Actually, this should be closed - we dont support merging tsconfigs now that they can have array |
No description provided.
The text was updated successfully, but these errors were encountered: