Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: alias module request from multiple loaders #577

Closed
wants to merge 1 commit into from

Conversation

alexander-akait
Copy link
Member

fixes #566

@@ -3,7 +3,7 @@
const path = require("path");
const utils = require("loader-utils");

const matchModuleImport = /^~([^\/]+|@[^\/]+[\/][^\/]+)$/g;
const matchModuleImport = /^~([^\/]+|@[^\/]+[\/][^\/]+)$/;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of test lines around one characters 🤕

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using g modify matchModuleImport.lastIndex and broke behavior as expected

@alexander-akait alexander-akait requested a review from jhnns June 1, 2018 18:17
@codecov
Copy link

codecov bot commented Jun 1, 2018

Codecov Report

Merging #577 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #577   +/-   ##
=======================================
  Coverage   97.54%   97.54%           
=======================================
  Files           6        6           
  Lines         122      122           
=======================================
  Hits          119      119           
  Misses          3        3
Impacted Files Coverage Δ
lib/importsToResolve.js 100% <100%> (ø) ⬆️

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 6dfb274...f5a018e. Read the comment docs.

jhnns added a commit that referenced this pull request Jun 4, 2018
@jhnns
Copy link
Member

jhnns commented Jun 4, 2018

Thanks for providing a test case. I managed to reproduce the problem with a simpler test, so I'm closing this. But anyway, thanks 👍

@jhnns jhnns closed this Jun 4, 2018
@jhnns jhnns deleted the issue-566 branch June 4, 2018 07:58
jhnns added a commit that referenced this pull request Jun 4, 2018
alexander-akait pushed a commit that referenced this pull request Jun 4, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

webpack alias with tilde not working for imports
2 participants