lambda-packages
lambda-packages copied to clipboard
Importing a page adds scripts to the page that imported it
What version of astro are you using?
1.0.3
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Linux
Describe the Bug
Importing a page in any way (such as Astro.glob) will embed all of its scripts in the file that's importing it. This only happens on build for some reason, not the dev server.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-6upkd4
Participation
- [ ] I am willing to submit a pull request for this issue.