You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been running on a boilerplate from your tutorials. I recently ran into a problem when trying to use a web worker library due to main.js not being executable by a web worker. main.js looks like:
varCLOSURE_UNCOMPILED_DEFINES=null;if(typeofgoog=="undefined")document.write('<script src="js/main.out/goog/base.js"></script>');document.write('<script src="js/main.out/cljs_deps.js"></script>');document.write('<script>if (typeof goog != "undefined") { goog.require("boot.cljs.main8234"); } else { console.warn("ClojureScript could not load :main, did you forget to specify :asset-path?"); };</script>');
Notice that it writes the dependencies to the page. A web worker cannot use this because it needs a single file that contains all of its execution data. Typically this would be the main.js file.
I could use an alternative file that uses importScripts(); alongside goog.require. I am not sure what scripts to import though and in what order. Possibly there is another js file that might do what I am looking for? Any questions of further details you might want please ask.
TLDR; Trying to get your tutorial boilerplate to work with servant web worker library but your main.js file does not work as expected.
The text was updated successfully, but these errors were encountered:
I have been running on a boilerplate from your tutorials. I recently ran into a problem when trying to use a web worker library due to main.js not being executable by a web worker. main.js looks like:
Notice that it writes the dependencies to the page. A web worker cannot use this because it needs a single file that contains all of its execution data. Typically this would be the main.js file.
I could use an alternative file that uses
importScripts();
alongsidegoog.require
. I am not sure what scripts to import though and in what order. Possibly there is another js file that might do what I am looking for? Any questions of further details you might want please ask.TLDR; Trying to get your tutorial boilerplate to work with servant web worker library but your main.js file does not work as expected.
The text was updated successfully, but these errors were encountered: