Repository navigation
build: migrate to @nuxt/module-builder v2 - #325
Merged
Merged
Conversation
Migrate to @nuxt/module-builder 2.0.0-alpha.1 following its upgrade guide: - Replace unbuild with tsdown, drop build.config.ts and add a tsdown.config.ts with the builder() plugin. - Use source exports: exports and main point at src, with the dist paths in publishConfig. Fix the runtime subpath to the .js/.d.ts files the build emits, and drop typesVersions, as Nuxt 4 apps only read exports. - Remove the stub build from dev:prepare, and run tsdown directly from build and prepack. - Type check each part with vue-tsc -b, using tsconfig.module.json for module code and tsconfig.test.json for tests and config files. - Enable isolatedDeclarations, with an explicit type on the module export and a type template for #build/nuxtjs-device.mjs.
Draft
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.
🔗 Linked issue
📚 Description
Updates to
@nuxt/module-builderv2