30 lines
887 B
Plaintext
30 lines
887 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "getCssInlinedLinkTags", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return getCssInlinedLinkTags;
|
|
}
|
|
});
|
|
function getCssInlinedLinkTags(clientReferenceManifest, filePath, injectedCSS, collectNewCSSImports) {
|
|
const filePathWithoutExt = filePath.replace(/\.[^.]+$/, "");
|
|
const chunks = new Set();
|
|
const entryCSSFiles = clientReferenceManifest.entryCSSFiles[filePathWithoutExt];
|
|
if (entryCSSFiles) {
|
|
for (const file of entryCSSFiles){
|
|
if (!injectedCSS.has(file)) {
|
|
if (collectNewCSSImports) {
|
|
injectedCSS.add(file);
|
|
}
|
|
chunks.add(file);
|
|
}
|
|
}
|
|
}
|
|
return [
|
|
...chunks
|
|
];
|
|
}
|
|
|
|
//# sourceMappingURL=get-css-inlined-link-tags.js.map |