@webmate-studio/builder 0.2.164 → 0.2.167

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 +1 -1
  2. package/src/bundler.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmate-studio/builder",
3
- "version": "0.2.164",
3
+ "version": "0.2.167",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [
package/src/bundler.js CHANGED
@@ -29,6 +29,9 @@ export async function bundleIsland(islandPath, outputPath, options = {}) {
29
29
  svelteCustomElement = true // Set false for mount()-based islands (preview mode)
30
30
  } = options;
31
31
 
32
+ let entryPoint = islandPath;
33
+ let wrapperPath = null;
34
+
32
35
  try {
33
36
  // Resolve paths for dependencies from builder package
34
37
  // In npx environment, we need to find where the actual dependencies are installed
@@ -43,8 +46,6 @@ export async function bundleIsland(islandPath, outputPath, options = {}) {
43
46
 
44
47
  // Check if island source already registers as Custom Element
45
48
  // If not (plain class export), create a wrapper entry that auto-registers it
46
- let entryPoint = islandPath;
47
- let wrapperPath = null;
48
49
 
49
50
  const isSvelte = islandPath.endsWith('.svelte');
50
51
  if (!isSvelte) {