/meteor:migrate-to-rspackfrom Meteor
Guides migration of Meteor 3.4+ apps to Rspack bundler, including replacing legacy build plugins with loaders, handling CommonJS interop, Node built-ins in browser code, and upgrading Rspack 1 to 2 on Meteor 3.6.
Ships in Meteor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Rspack compiles app code; Meteor builds Atmosphere packages and assembles the bundle. Keep packages, but audit their architecture and browser dependencies.
Meteor 3.4+ required. Prefer enabling "meteor": { "modern": true } and
fixing Babel fallbacks first. For setup/helpers, use meteor-modern-build-stack.
Match @meteorjs/rspack to the Meteor release, not to
@rspack/core or @rspack/cli:
| Meteor | rspack | @meteorjs/rspack | Capability boundary |
|---|---|---|---|
| 3.4 | 1.0.0 | 1.0.0 | Base integration and helpers. |
| 3.4.1 and 3.5 | 1.1.0 | 2.0.1 | Adds v2 helpers and inherited TOOL_NODE_FLAGS. |
| 3.5.1 | 1.2.0 | 2.1.0 | Revised client polyfills and extension discovery. |
| 3.5.2 | 1.3.0 | 2.2.0 | Dependency diagnostics, mode isolation, full-app/TLA and cache fixes. |
| 3.6 | 1.4.0 | 3.0.0 | Rspack core/CLI 2.2.7+, dev server 2.2.1+, React Compiler, workspace installs and separate architecture graphs. |
Inspect .meteor/versions, package.json, and the lockfile: Atmosphere,
Meteor npm integration and Rspack core versions are independent. With automatic
installs enabled, startup aligns dependencies; review and commit the changes.
meteor update --npm is an alternative. Keep the release pairing.
Already using Rspack? For the Meteor 3.6 upgrade, follow Rspack 1 to 2 and its toolchain checks. Keep valid entries/configuration; skip the first-activation steps below.
package.json
meteor.mainModule? If no, define them. Required.references/client-graph-preflight.md.import inside an if,
function, or other block)? If yes, move them to top level or convert
them to dynamic import() / require. Required for app code; OK in
Atmosphere packages.less, fourseven:scss,
coffeescript, zodern:melte, jorgenvatle:vite)? Plan an Rspack
loader replacement and prove capability parity before removal. See
references/framework-and-css.md.import x from "some-cjs")? Decide between rewriting to
import * as x or restoring Meteor-style interop in .swcrc. See
references/code-migrations.md.mainModule.server. Rspack still
bundles the server; client is skipped.meteor.modules or
resolve.symlinks: false; see the references.meteor add rspack and watch the verbose [Transpiler] log for
remaining (app) failures.{
"meteor": {
"mainModule": {
"client": "client/main.js",
"server": "server/main.js"
},
"testModule": "tests.js"
}
}
Without mainModule, Rspack has no entry. Meteor's eager-loading model
does not apply: Rspack does not auto-discover modules. See
references/framework-and-css.md for CSS and HTML routing.
For Meteor 3.6 separate legacy/native entries and earlier-version limits, read architecture preservation.
Apply the nested-import rewrites
to app code. Adapt callers when using Promise-returning import();
Atmosphere package code stays on Meteor's bundler.
The integration writes to _build/, public/build-assets/,
public/build-chunks/, private/build-assets/. Auto-added to .gitignore.
If the project already uses any of these names, rename in package.json:
{
"meteor": {
"buildContext": "build",
"assetsContext": "assets",
"chunksContext": "chunks"
}
}
Do not edit any file under those folders. Exclude them from IDE indexing and
from every recursive formatter, linter, typechecker, test-discovery, and
coverage scan. .gitignore does not configure those tools.
Do not match the active build context in .meteorignore or METEOR_IGNORE.
Rspack writes Meteor-facing entry modules there, then Meteor reads them to
assemble the final bundle. Resolve renamed contexts before auditing ignores.
Most app-file build plugins move to Rspack loaders. Prove capability parity
before removal; make conflicting activation and removal one reversible change.
See references/framework-and-css.md.
| Old plugin | Replacement |
|---|---|
meteor/less | less-loader. See references/framework-and-css.md. |
fourseven:scss | sass-loader + sass-embedded. See refs. Skeleton in meteor create --full. |
meteor/coffeescript | coffee-loader (optionally chained with swc-loader). |
zodern:melte (Svelte) | Official Rspack Svelte loader. |
jorgenvatle:vite (Vue/Solid) | Native Rspack Vue/Solid loaders. |
babel-plugin-react-compiler | SWC on the 3.6 pairing; earlier integrations retain Babel. See framework reference. |
zodern:types | Keep the working declaration provider during bundler migration; 3.6 native adoption is a separate explicit choice. |
Plugins acting only on Atmosphere package files can stay. Plugins acting on app-folder files (entry folder excluded) must move to Rspack.
Prefer namespace imports. For the interop override and its app-wide
CommonJS/tree-shaking cost, read references/code-migrations.md.
Resolve required npm updates locally and commit package.json and the lockfile.
Use the existing manager's frozen install with dev dependencies, then build.
On [email protected] (Meteor 3.5.2), meteor.autoInstallDeps: false still reports
missing/outdated dependencies and manual commands; earlier opt-out behavior
can skip those checks. Inspect the first dependency/config error and the actual
project root before choosing a fix. See references/troubleshooting.md.
"meteor": { "modern": { "transpiler": { "verbose": true } } } and fix
them while still on the optimization-only stack..swcrc to avoid migrating a handful of
imports. Trades real bundle-size wins for short-term convenience._build/, public/build-assets/, public/build-chunks/,
private/build-assets/. Autogenerated.references/eval-cases.mdrspack.config.js API: meteor-modern-build-stack.references/client-graph-preflight.md (opens in a new tab)references/code-migrations.md (opens in a new tab)references/eval-cases.md (opens in a new tab)references/framework-and-css.md (opens in a new tab)references/rspack-2-upgrade.md (opens in a new tab)references/toolchain-compatibility.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/validation-matrix.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub meteor/agent-skills --plugin meteor17 skills in this plugin
/meteor-accountsUse when wiring up authentication in a Meteor 3 app. Triggers on accounts-password, accounts-base, OAuth (Google, Facebook, GitHub, Apple, Twitter, Meetup, Weibo), accounts-2fa, accounts-passwordless, ServiceConfiguration.configurations.upsertAsync, Accounts.createUserAsync, Accounts.setPasswordAsync, Accounts.forgotPassword, Accounts.resetPassword, Accounts.verifyEmail, useHttpOnlyCookies, clientStorage, Meteor.loginWithPasswordAnd2faCode, email verification, accounts-express, authFetchAllowedOrigins. Use this skill when the user asks about signups, signins, or asks about token storage vs HttpOnly cookies.
/meteor-blazeUse when building or debugging Meteor 3 Blaze interfaces: meteor create --blaze, Spacebars, helpers/events, lifecycle, Tracker, ReactiveVar/ReactiveDict, subscriptions, Promise helpers, #let states, Template.dynamic, Blaze.render, and blaze-hot HMR. Triggers on stale async results, lost reactivity after await, data-context lookup surprises, duplicate DOM integrations, Rspack full reloads, raw HTML in triple braces, jQuery not found, Expected template or null, Template.instance() is null after await, missing event.dataTransfer, Reactive HTML attributes, BLOCKOPEN, TRIPLE template tag, Expected "li" end tag, or Template can't be named. Use this skill when asked about reusable Blaze components, the Blaze PWA scaffold, package/backend selection, Rspack entry imports, or template tests. For Meteor 2 to 3 upgrades, use migrate-to-meteor-3; for unexplained cross-layer failures, meteor-debugging.
/meteor-cli-installationUse when installing, locating, repairing, resetting, or uninstalling the Meteor CLI for Meteor 3 development. Triggers on "meteor: command not found", npx meteor, installer failures, PATH problems, specific Meteor versions, clean reinstall requests, meteor reset, or corrupted dev bundles. Use this skill when the user asks about fresh workstation setup or making a local Meteor command available. For application failures after the CLI starts, use meteor-debugging; for application code upgrades, use migrate-to-meteor-3.
/meteor-community-packagesUse when choosing, evaluating, adopting, configuring, or debugging a package from Meteor's documented community catalog, or moving from a community package to a promoted core package such as roles. Triggers on community package recommendations, Atmosphere vs npm selection, Packosphere maintenance checks, jam:* helpers, Meteor.publish.once, Meteor.publish.stream, meteor-rpc, Wormhole, cluster, mail-preview, meteor add --search, or adopting a Git-hosted Atmosphere package. Use this skill when the user asks which maintained package fits or how its documented integration works. Route Meteor 2-to-3 package failures to migrate-to-meteor-3 and underlying core API design to its owning skill.
/meteor-debuggingUse when diagnosing an unexplained failure in a Meteor 3 application before the failing layer or fix is known. Triggers on server crashes, client-only errors, Errors prevented startup, Meteor App - Error, stuck subscriptions, DDP or WebSocket disconnects, Minimongo/server data mismatches, hanging or flaky tests, slow builds, --inspect, console.log, .only, Playwright traces, Instrumentation lifecycle events, or requests to debug a Meteor app. Use this skill when evidence must distinguish Meteor tool, server, client, data, test, browser, mobile, or production boundaries. For test setup and authoring use meteor-testing; after confirming a domain cause, hand the repair to the owning skill.
/meteor-deploymentUse when deploying a Meteor 3 application. Triggers on meteor build, meteor deploy, Galaxy Push to Deploy, Galaxy Mode, Repository Mode, DEPLOY_HOSTNAME, Docker, Kubernetes, settings.json, METEOR_SETTINGS, MONGO_URL, MONGO_OPLOG_URL, ROOT_URL, PORT, HTTP_FORWARDED_COUNT, NODE_OPTIONS, health checks, pre-deploy commands, hot code push, --architecture os.linux.x86_64, --server-only, or a deployed Node.js version mismatch. Use this skill when the user asks about shipping the app, asks about production config, or asks about containerizing. For Cordova Android/iOS artifacts, signing, and native HCP compatibility use meteor-native; this skill owns the backend deployment.
Other plugins' skills for the same job