-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
fix: do not register the plugin twice #183
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #183 +/- ##
==========================================
- Coverage 88.54% 86.66% -1.88%
==========================================
Files 3 3
Lines 192 180 -12
Branches 39 38 -1
==========================================
- Hits 170 156 -14
- Misses 20 22 +2
Partials 2 2
Continue to review full report at Codecov.
|
|
||
this.preCompiler = webpack(config); | ||
this.preCompiler.outputFileSystem = createFsFromVolume(new Volume()); | ||
this.preCompiler.outputFileSystem.join = path.join.bind(path); |
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.
We should keep it otherwise webpack serve will not work
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.
can you clarify(maybe I misunderstood), how will webpack serve
get affected?
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.
When we use webpack server
we use memory memory fs so install packages will not work
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.
but this is unused for some reason 🤔
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.
Because we don't have test with webpack-dev-server, we need to add them
What kind of change does this PR introduce?
fix
Did you add tests for your changes?
yes
If relevant, did you update the documentation?
NA
Summary
we were registering plugin twice in some precompile logic which was redundant.
Does this PR introduce a breaking change?
no
Other information