@webmate-studio/builder 0.2.53 → 0.2.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-service.js +5 -4
- package/package.json +1 -1
package/build-service.js
CHANGED
|
@@ -240,12 +240,13 @@ async function buildComponent(payload) {
|
|
|
240
240
|
// Combine HTML and island content for CSS scanning
|
|
241
241
|
let contentToScan = transformedHtml || '';
|
|
242
242
|
|
|
243
|
-
// Add island
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
// Add ORIGINAL island source (not bundled!) for CSS scanning
|
|
244
|
+
// The bundled JS has classes as strings in compiled code, which won't be detected by regex
|
|
245
|
+
if (islands && islands.length > 0) {
|
|
246
|
+
for (const island of islands) {
|
|
246
247
|
contentToScan += '\n' + island.content;
|
|
247
248
|
}
|
|
248
|
-
console.log(`[Build Service] Including ${
|
|
249
|
+
console.log(`[Build Service] Including ${islands.length} island source file(s) for CSS scanning`);
|
|
249
250
|
}
|
|
250
251
|
|
|
251
252
|
const cssResult = await generateComponentCSS(contentToScan, {
|