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

Auto detect entry points #29

Open
hypebright opened this issue Feb 12, 2024 · 0 comments
Open

Auto detect entry points #29

hypebright opened this issue Feb 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hypebright
Copy link
Contributor

We could add an auto_detect argument to build_js, that will auto discover the entry points in a given folder (or in the default srcjs). Currently when you're doing component based bundling you constantly need to provide all the entry points, like so:

build_js(entry_points = c("componentA.js", "componentB.js", "componentC.js"))

and if you accidentally forget to give the entry_point arg, you end up with a main.js file again 🙃.

It could look like this instead:

build_js(auto_detect = TRUE)

Default would be FALSE (or TRUE even, if that works in combination while ensuring backwards compatibility?) and it would automatically look for .js files in the directory given in dir.

@hypebright hypebright added the enhancement New feature or request label Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant