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

add extension alias #351

Merged
merged 2 commits into from
Jun 28, 2022
Merged

add extension alias #351

merged 2 commits into from
Jun 28, 2022

Conversation

vankop
Copy link
Member

@vankop vankop commented Jun 27, 2022

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
Copy link

codecov bot commented Jun 27, 2022

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
Copy link
Member

sokra commented Jun 28, 2022

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 <22380829+ijjk@users.noreply.github.com>
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