ref(nuxt): Build the Nuxt module in-house instead of @nuxt/module-builder#22190
Open
logaretm wants to merge 1 commit into
Open
ref(nuxt): Build the Nuxt module in-house instead of @nuxt/module-builder#22190logaretm wants to merge 1 commit into
logaretm wants to merge 1 commit into
Conversation
34a136b to
9549b5c
Compare
00fe4d9 to
102eb9c
Compare
9549b5c to
f0bcefb
Compare
102eb9c to
10e5434
Compare
f0bcefb to
96ab381
Compare
10e5434 to
b48cbc7
Compare
Contributor
size-limit report 📦
|
…lder Replace @nuxt/module-builder with a plain rollup + tsc setup for the build/module output: rollup bundles the module entry and emits the runtime files one-to-one (preserveModules), tsc emits the declarations, and a small script writes module.cjs, module.json and types.d.ts. This drops a build tool that consumes the TypeScript compiler API, so the package no longer pins us to a specific compiler.
96ab381 to
df9681d
Compare
b48cbc7 to
18271b3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces
@nuxt/module-builderwith a plain rollup + tsc setup for thebuild/moduleoutput. Rollup bundles the module entry and emits the runtime files one-to-one (preserveModules), tsc emits the declarations, and a small script writesmodule.cjs,module.jsonandtypes.d.ts.The point is to drop a build tool that consumes the TypeScript compiler API, so the package no longer pins us to a specific compiler, also streamlines nuxt SDK build step for future changes like rolldown.
We still have E2E tests ensuring the module output is consumable by Nuxt apps, so that's not something I would worry about drifting in the future.
Stacked on #22186.