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

Consuming project has to add a lot of dependencies #7

Open
halfninja opened this issue Apr 17, 2023 · 1 comment
Open

Consuming project has to add a lot of dependencies #7

halfninja opened this issue Apr 17, 2023 · 1 comment

Comments

@halfninja
Copy link
Member

While this project protects the user from many build details, you still have to add a lot of dependencies directly to your project due to how package resolution works. Although we pull in things like css-loader, they are only accessible while running code inside this project. Once Webpack is running, it's in the consuming project's directory so it doesn't have access to any of this, and it complains about css-loader being missing.

One solution might be to provide a function in this project that invokes Webpack, which you can then run as a normal Node script. It would then be running inside this module and would have access to the dependencies required. Could make this opt-in, so consumers can choose whether to continue building the config to pass to Webpack.

@halfninja
Copy link
Member Author

halfninja commented May 2, 2023

If we're in danger of writing a low-quality knock-off of Vite, then we should probably look at using Vite.

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

No branches or pull requests

1 participant