Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Barrel files optimization in bundle: false mode #339

Open
SoonIter opened this issue Oct 29, 2024 · 0 comments
Open

[Feature]: Barrel files optimization in bundle: false mode #339

SoonIter opened this issue Oct 29, 2024 · 0 comments

Comments

@SoonIter
Copy link
Member

What problem does this feature solve?

Barrel files is a development model commonly used in development.

Stop using Barrel files

how-we-optimized-package-imports-in-next-js

maybe we can automatically optimize this behavior in the output of lib

import { foo } from './index' -> import { foo } from './components/foo/index.mjs'

What does the proposed API look like?

1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant