Skip to content

Commit f37ce4e

Browse files
committed
avoid hoisting css externals
1 parent 277a8bb commit f37ce4e

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

lib/ExternalModule.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,9 @@ class ExternalModule extends Module {
410410
* @returns {boolean} true, if the chunk is ok for the module
411411
*/
412412
chunkCondition(chunk, { chunkGraph }) {
413-
return chunkGraph.getNumberOfEntryModules(chunk) > 0;
413+
return this.externalType === "css-import"
414+
? true
415+
: chunkGraph.getNumberOfEntryModules(chunk) > 0;
414416
}
415417

416418
/**

test/configCases/css/external/test.config.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy