moodring
moodring17h ago

"Complicated" dynamic import and deno bundle for the browser ..

I recently updated from 2.4 to 2.5, specifically for the new html entrypoint feature for the bundle command. Before upgrading, bundling ts/css to browser-ready output works fine. After upgrading, not only am I seeing several thousand chunks from bundled output, but also new errors in the browser console regarding missing .js files. Some diagnostic work shows the problem package to be browser-fs-access, which is a dependency of one of my direct dependencies, and the problem code to be dynamic imports, as in the following:
...
const o = e ? import("./file-save-745eba88.js") : import("./file-save-3189631c.js");
...
const o = e ? import("./file-save-745eba88.js") : import("./file-save-3189631c.js");
The errors in the browser look like the following:
index.mjs:10 GET http://localhost:9090/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/node_modules/.deno/browser-fs-access@0.29.1/node_modules/browser-fs-access/dist/file-open-002ab408-VZYZNU6I.js net::ERR_ABORTED 404 (Not Found)
(anonymous) @ index.mjs:10
index.mjs:10 GET http://localhost:9090/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/_.._/node_modules/.deno/browser-fs-access@0.29.1/node_modules/browser-fs-access/dist/file-open-002ab408-VZYZNU6I.js net::ERR_ABORTED 404 (Not Found)
(anonymous) @ index.mjs:10
Any guidance/help/tips are appreciated. Thanks!
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?