Right now, we only bundle your main application entrypoint (the index.html file, or whatever was set as "devOptions.fallback").
let dom = new JSDOM(
fs.readFileSync(path.join(srcDirectory, config.devOptions.fallback))
);
Instead we should scan every HTML file in your built application for entrypoints, and then use the full collection of found script tags to bundle your application.
See this discussion: https://www.pika.dev/npm/snowpack/discuss/381
Right now, we only bundle your main application entrypoint (the
index.html
file, or whatever was set as "devOptions.fallback").Instead we should scan every HTML file in your built application for entrypoints, and then use the full collection of found script tags to bundle your application.