Default index.html doesnt load any custom javascript other than index.js #844
Replies: 1 comment 1 reply
-
Hey, this is a known issue with the sandpack-bundler, it only executes one entrypoint, in this case index.js (which is configured in pkg.json, not read from the html file, sandpack defaults to a default pkg.json) In case the goal of your project is a bit more codepen like without any bundling/npm modules the upcoming static template might resolve this: #830 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is the sandbox
https://codesandbox.io/s/upbeat-euler-8kx1h1?file=/src/App.tsx
In the sandbox when the browser loads, the test.js is not loaded and is ignored. Only index.js is loaded by default. if loaded the console.log statement in the test.js would have been printed
Beta Was this translation helpful? Give feedback.
All reactions