Skip to content

add extension alias - #351

Merged
sokra merged 2 commits into
mainfrom
extension-alias
Jun 28, 2022
Merged

sokra merged 2 commits into
mainfrom
extension-alias

Conversation

@vankop

@vankop vankop commented Jun 27, 2022 •

Copy link
Copy Markdown
Contributor

add new option extensionAlias which maps extension to extension alias

related to TypeStrong/ts-loader#1383 (comment)

add new option extensionAlias which maps extension to extension alias
@vankop
vankop force-pushed the extension-alias branch from 8d4c0fa to 9722550 Compare June 27, 2022 09:22
@codecov

codecov Bot commented Jun 27, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #351 (16225de) into main (ddc96f8) will increase coverage by 0.02%.
The diff coverage is 96.87%.

@@            Coverage Diff             @@
##             main     #351      +/-   ##
==========================================
+ Coverage   95.14%   95.16%   +0.02%     
==========================================
  Files          39       40       +1     
  Lines        1628     1656      +28     
==========================================
+ Hits         1549     1576      +27     
- Misses         79       80       +1     
Impacted Files Coverage Δ
lib/ExtensionAliasPlugin.js 95.23% <95.23%> (ø)
lib/ResolverFactory.js 97.25% <100.00%> (+0.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ddc96f8...16225de. Read the comment docs.

@sokra

sokra commented Jun 28, 2022

Copy link
Copy Markdown
Member

Thanks

@sokra
sokra deleted the extension-alias branch June 28, 2022 10:14
kodiakhq Bot pushed a commit to vercel/next.js that referenced this pull request Jan 28, 2023
## ESM: support module option for tsconfig.json 

- fixes #37525
- fixes #41961

With [TypeScript 4.7 providing ECMAScript Module Support](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#ecmascript-module-support-in-node-js), we can now set this in our tsconfig.json file for the [module](https://www.typescriptlang.org/tsconfig#module) option.

Webpack added "extensionAlias" to solve importing ts files with .js extension -> webpack/enhanced-resolve#351



Co-authored-by: JJ Kasper <[email protected]>
raviqqe added a commit to raviqqe/til that referenced this pull request Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants