lambda-packages icon indicating copy to clipboard operation
lambda-packages copied to clipboard

Importing a page adds scripts to the page that imported it

Open obj-obj opened this issue 3 years ago • 3 comments

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.

obj-obj avatar Aug 12 '22 22:08 obj-obj