@webmate-studio/builder 0.2.53 → 0.2.55

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.
Files changed (2) hide show
  1. package/build-service.js +5 -4
  2. package/package.json +3 -2
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 content (they contain Tailwind classes too!)
244
- if (bundledIslands.length > 0) {
245
- for (const island of bundledIslands) {
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 ${bundledIslands.length} island(s) for CSS scanning`);
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmate-studio/builder",
3
- "version": "0.2.53",
3
+ "version": "0.2.55",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [
@@ -20,7 +20,8 @@
20
20
  ],
21
21
  "exports": {
22
22
  ".": "./src/index.js",
23
- "./build-service.js": "./build-service.js"
23
+ "./build-service.js": "./build-service.js",
24
+ "./src/css-deduplicator.js": "./src/css-deduplicator.js"
24
25
  },
25
26
  "bin": {
26
27
  "wm-build-service": "./build-service.js"