[New] no-unused-modules: support dynamic imports [2] - #2212
Conversation
See import-js#1660, import-js#2212. Co-authored-by: Max Komarychev <maxkomarychev@gmail.com> Co-authored-by: Filipp Riabchun <filipp.riabchun@jetbrains.com> Co-authored-by: 薛定谔的猫 <weiran.zsd@outlook.com>
All occurences of `import('...')` are treated as namespace imports
(`import * as X from '...'`)
See import-js#1660, import-js#2212.
Co-authored-by: Max Komarychev <maxkomarychev@gmail.com>
Co-authored-by: Filipp Riabchun <filipp.riabchun@jetbrains.com>
Co-authored-by: 薛定谔的猫 <weiran.zsd@outlook.com>
e69c056 to
86a87d3
Compare
|
oof, please don't make new PRs (but please leave this one open, since now I have to keep it in sync with #1660 until both are merged) |
|
Sorry, the scheme with two branches for one PR apparently didn't work well, at least for me. Tests are passing in my branch, I have no idea what broke them in the original branch |
|
Probably something that landed in master in the interim, since the branches shouldn't be any different. |
|
My branch is up-to date with master |
63c3c5a to
b724db8
Compare
|
All green now |
Extracted from import-js#2212 / import-js#1660.
329454c to
3d8cc76
Compare
|
post rebase, travis-ci is failing, with |
Codecov Report
@@ Coverage Diff @@
## main #2212 +/- ##
==========================================
- Coverage 84.28% 83.16% -1.13%
==========================================
Files 93 93
Lines 2971 2987 +16
Branches 881 879 -2
==========================================
- Hits 2504 2484 -20
- Misses 467 503 +36
Continue to review full report at Codecov.
|
|
For some reason, I don't see |
|
hm, you're right, i don't see that either. Maybe |
3d8cc76 to
b0acc6e
Compare
b0acc6e to
b7bf750
Compare
b7bf750 to
7c382f0
Compare
|
👍 awesome! thx for fixing this! |
|
Hey, is it possible to release this? 🙏 |
Replaces #1660