diff --git a/template/js/index.js b/template/js/index.js index 9db81ab..dadf04d 100644 --- a/template/js/index.js +++ b/template/js/index.js @@ -1 +1,5 @@ -import("../pkg/index.js").catch(console.error); +import("../pkg/index.js") + .then((module) => { + module.main_js(); + }) + .catch(console.error);