tsc-esm-fix
Advanced tools
Comparing version 2.12.3 to 2.12.4
{ | ||
"git": { | ||
"commitId": "e9b9424140075e6842c6713482c00b169362e406", | ||
"commitId": "9f6743a349a00f9096c0a5ed2b4c7a167f6b1c5d", | ||
"repoUrl": "https://github.com/antongolub/tsc-esm-fix", | ||
"repoName": "antongolub/tsc-esm-fix" | ||
}, | ||
"date": "2022-04-08T06:59:26.763Z" | ||
"date": "2022-04-08T07:54:19.437Z" | ||
} |
@@ -0,1 +1,3 @@ | ||
## [2.12.4](https://github.com/antongolub/tsc-esm-fix/compare/v2.12.3...v2.12.4) (2022-04-08) | ||
## [2.12.3](https://github.com/antongolub/tsc-esm-fix/compare/v2.12.2...v2.12.3) (2022-04-08) | ||
@@ -2,0 +4,0 @@ |
{ | ||
"name": "tsc-esm-fix", | ||
"version": "2.12.3", | ||
"version": "2.12.4", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -29,2 +29,11 @@ # tsc-esm-fix | ||
#### moduleResolution: nodenext | ||
[Nightly build TypeScript 4.7](https://www.typescriptlang.org/docs/handbook/nightly-builds.html) provides [experimental esm support](https://www.typescriptlang.org/docs/handbook/esm-node.html). But it still forces to add extensions by hand (tested on [4.7.0-dev.20220408](https://www.npmjs.com/package/typescript/v/4.7.0-dev.20220408)). | ||
```shell | ||
src/main/ts/q/u/x/index.ts:1:21 - error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '../../../foo.js'? | ||
1 import { foo } from '../../../foo' | ||
``` | ||
### Solutions | ||
@@ -31,0 +40,0 @@ 1. Post-process tsc-compiled outputs each time after build. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95718
229