@webmate-studio/builder 0.1.1 → 0.1.2

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/package.json +10 -2
  2. package/src/bundler.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmate-studio/builder",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [
@@ -26,11 +26,19 @@
26
26
  "dependencies": {
27
27
  "@webmate-studio/core": "^0.1.0",
28
28
  "@webmate-studio/parser": "^0.1.0",
29
+ "alpinejs": "^3.15.0",
29
30
  "dom-serializer": "^2.0.0",
30
31
  "esbuild": "^0.19.0",
32
+ "esbuild-svelte": "^0.9.3",
31
33
  "glob": "^10.3.0",
32
34
  "htmlparser2": "^9.0.0",
35
+ "lit": "^3.3.1",
36
+ "preact": "^10.27.2",
37
+ "react": "^19.2.0",
38
+ "react-dom": "^19.2.0",
39
+ "svelte": "^5.41.2",
33
40
  "tailwindcss": "^4.1.0",
34
- "@tailwindcss/cli": "^4.1.0"
41
+ "@tailwindcss/cli": "^4.1.0",
42
+ "vue": "^3.5.22"
35
43
  }
36
44
  }
package/src/bundler.js CHANGED
@@ -17,8 +17,8 @@ export async function bundleIsland(islandPath, outputPath, options = {}) {
17
17
  } = options;
18
18
 
19
19
  try {
20
- // Resolve paths for dependencies from CLI package
21
- const cliNodeModules = path.resolve(import.meta.dirname, '../../node_modules');
20
+ // Resolve paths for dependencies from builder package
21
+ const builderNodeModules = path.resolve(import.meta.dirname, '../node_modules');
22
22
 
23
23
  // Determine if this file should use JSX loader
24
24
  // Only use JSX for .jsx files (React/Preact), not for .js files (Lit/Alpine/Vue/Vanilla)
@@ -66,8 +66,8 @@ export async function bundleIsland(islandPath, outputPath, options = {}) {
66
66
  ],
67
67
  // Don't bundle browser globals
68
68
  external: [],
69
- // Add CLI's node_modules to resolve path so Svelte runtime can be found
70
- nodePaths: [cliNodeModules],
69
+ // Add builder's node_modules to resolve path so framework runtimes can be found
70
+ nodePaths: [builderNodeModules],
71
71
  // Log level
72
72
  logLevel: 'warning'
73
73
  });