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

Support build without bundling #166

Open
cometkim opened this issue May 2, 2023 · 2 comments
Open

Support build without bundling #166

cometkim opened this issue May 2, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@cometkim
Copy link
Owner

cometkim commented May 2, 2023

Note: this will be a major milestone for nanobundle v2

Bundling is for the application, bundling in NPM libraries is of no value (since we don't support UMD bundle)

Another problem with bundling is that it is incompatible with some Node.js semantics, such as subpath pattern exports. This is a blocker for some issues (#45, #48)

But building a library without bundling is not trivial today. Bundlers like esbuild and webpack don't support it. So it requires to use a transpiler like Babel or TypeScript separately with complex config.

nanobundle will v2 provides a no-bundle esbuild configuration. And will promotes it to default behavior later. May include rebranding as it is no longer "bundle".

@cometkim cometkim added the enhancement New feature or request label May 2, 2023
@cometkim cometkim self-assigned this May 2, 2023
@cometkim cometkim changed the title Support build without bundle Support build without bundling May 2, 2023
This was referenced May 19, 2023
@XantreDev
Copy link

How can I help to realize this feature? Are some one working on it?

@cometkim
Copy link
Owner Author

I have an strategy for this and have done some PoCs. I have to investigate more for compatibility with watch mode, but I believe I can begin late this month.

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

2 participants