hyperclayjs 1.3.0 → 1.3.1
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/hyperclay.js +3 -4
- package/package.json +1 -1
package/hyperclay.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* HyperclayJS v1.3.
|
|
2
|
+
* HyperclayJS v1.3.1 - Minimal Browser-Native Loader
|
|
3
3
|
*
|
|
4
4
|
* Modules self-export to window.hyperclay when imported.
|
|
5
5
|
* Modules auto-init when imported (no separate init call needed).
|
|
@@ -123,9 +123,8 @@ const PRESETS = {
|
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
// Parse URL
|
|
127
|
-
const
|
|
128
|
-
const url = new URL(script.src);
|
|
126
|
+
// Parse URL (use import.meta.url for ES modules since document.currentScript is null)
|
|
127
|
+
const url = new URL(import.meta.url);
|
|
129
128
|
const preset = url.searchParams.get('preset');
|
|
130
129
|
const features = url.searchParams.get('features');
|
|
131
130
|
const exclude = url.searchParams.get('exclude');
|