We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa993da commit 4112920Copy full SHA for 4112920
src/index.js
@@ -42,6 +42,7 @@ class CssDependencyTemplate {
42
class CssModule extends webpack.Module {
43
constructor(dependency) {
44
super(MODULE_TYPE, dependency.context);
45
+ this.id = '';
46
this._identifier = dependency.identifier;
47
this._identifierIndex = dependency.identifierIndex;
48
this.content = dependency.content;
@@ -92,7 +93,7 @@ class CssModule extends webpack.Module {
92
93
super.updateHash(hash);
94
hash.update(this.content);
95
hash.update(this.media || '');
- hash.update(JSON.stringify(this.sourceMap || ''));
96
+ hash.update(this.sourceMap ? JSON.stringify(this.sourceMap) : '');
97
}
98
99
0 commit comments