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

"chunks" directory appears in build output, if custom modules are imported in Astro files

Open vrilcode opened this issue 3 years ago • 1 comments

What version of astro are you using?

1.0.6

Are you using an SSR adapter? If so, which one?

none

What package manager are you using?

npm

What operating system are you using?

Mac, Linux

Describe the Bug

I have a module file with helper functions: src/utils/index.ts. Some of these exported functions are used (imported) in Astro files. If I execute astro build an empty directory called chunks appears in dist directory (along with the expected/generated files and directories). If I remove all imports of helper functions in Astro files, there is no chunks directory in dist (intended behavior).

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-gvdubp-aj1rng

Participation

  • [ ] I am willing to submit a pull request for this issue.

vrilcode avatar Aug 23 '22 12:08 vrilcode