@daz4126/helium 0.28.0 → 0.29.0
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/helium.js +2 -1
- package/package.json +1 -1
package/helium.js
CHANGED
|
@@ -200,8 +200,9 @@ async function processElements(element) {
|
|
|
200
200
|
const importAttr = el.getAttribute("@import") || el.getAttribute("data-he-import");
|
|
201
201
|
if (importAttr) {
|
|
202
202
|
importAttr.split(",").map((m) => m.trim()).forEach((moduleName) => {
|
|
203
|
+
const path = "helium_modules/" + moduleName;
|
|
203
204
|
importPromises.push(
|
|
204
|
-
import(
|
|
205
|
+
import(path)
|
|
205
206
|
.then((module) => {
|
|
206
207
|
Object.keys(module).forEach(
|
|
207
208
|
(key) => (state[key] = module[key]),
|