Closed yiminghe closed 3 months ago
The committers listed above are authorized under a signed CLA.
We need a test case, please add
test cases updated
Attention: Patch coverage is 50.00000%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 92.00%. Comparing base (
c7ff30d
) to head (9bfc65e
). Report is 7 commits behind head on master.:exclamation: Current head 9bfc65e differs from pull request most recent head fc80832. Consider uploading reports for the commit fc80832 to get more accurate results
Files | Patch % | Lines |
---|---|---|
src/loader.js | 50.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
For fixing tests for OLD API just use OLD_API=1 npm run test:only
Thank you for your PR
For fixing tests for OLD API just use
OLD_API=1 npm run test:only
passed
@yiminghe We have:
var cssReload = require("/home/runner/work/mini-css-extract-plugin/mini-css-extract-plugin/src/hmr/hotModuleReplacement.js")(module.id, undefined);
As you can see it is an absolute path, let's use it from here https://github.com/webpack-contrib/css-loader/blob/master/src/utils.js#L15 (maybe we already have the same util here)
@yiminghe We have:
var cssReload = require("/home/runner/work/mini-css-extract-plugin/mini-css-extract-plugin/src/hmr/hotModuleReplacement.js")(module.id, undefined);
As you can see it is an absolute path, let's use it from here https://github.com/webpack-contrib/css-loader/blob/master/src/utils.js#L15 (maybe we already have the same util here)
updated
This PR contains a:
Motivation / Use-Case
Breaking Changes
Additional Info
Fixes #692