|
@@ -13,8 +13,10 @@ export function configHmrPlugin(): Plugin {
|
|
|
if (file.match(/xml$/)) return [];
|
|
|
|
|
|
modules.forEach((m) => {
|
|
|
- m.importedModules = new Set();
|
|
|
- m.importers = new Set();
|
|
|
+ if (!m.url.match(/\.(css|less)/)) {
|
|
|
+ m.importedModules = new Set();
|
|
|
+ m.importers = new Set();
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
return modules;
|