-
Notifications
You must be signed in to change notification settings - Fork 416
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
Stylis resolve plugin #195
Conversation
Codecov Report
@@ Coverage Diff @@
## master #195 +/- ##
==========================================
+ Coverage 97.64% 97.74% +0.09%
==========================================
Files 19 20 +1
Lines 425 443 +18
Branches 90 95 +5
==========================================
+ Hits 415 433 +18
Misses 10 10
Continue to review full report at Codecov.
|
src/babel/lib/moduleSystem.js
Outdated
exports: any, | ||
isDefault: boolean = false | ||
) { | ||
const moduleInstance = new Module(`@linaria/${moduleId}`, null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is provideModule
used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It holds a reference to real file so it's possible to get the relative path. We've discussed about @zamotany recently that it's maybe better to change the module name to something like @linaria-internal-somehash
so it's impossible for someone to mistakenly require it)
Fixes #182