/meteor:meteor-modern-build-stackfrom Meteor
Configures Meteor 3's modern build stack: SWC transpiler/minifier, @parcel/watcher, web-arch skipping, .meteorignore, and Rspack integration. Handles migration from Babel to SWC, Rspack config, and PWA/Workbox setup.
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.
The modern build stack is two independent tracks. Enable either or both.
@parcel/watcher replaces the
legacy watcher, development skips legacy archs.Current meteor create application skeletons ship both enabled.
Purposefully small or compatibility-oriented skeletons, including minimal
and legacy, may omit Rspack or the modern flag. Inspect the generated
package.json and .meteor/packages instead of inferring features only from
the Meteor version. For existing apps, enable optimizations first, then add
Rspack once the app code is standards-clean.
Add to package.json:
"meteor": {
"modern": true
}
This enables SWC, the SWC minifier, the modern watcher, and dev-mode web arch skipping. Each falls back to legacy when something is incompatible, so this is backward compatible.
Opt out of pieces:
"meteor": {
"modern": {
"transpiler": false,
"minifier": false,
"watcher": false,
"webArchOnly": false
}
}
Or scope SWC: transpiler.excludeApp, transpiler.excludeNodeModules,
transpiler.excludePackages, transpiler.excludeLegacy. Accept true or
an array of paths/regexes.
Verbose transpiler logs to diagnose Babel fallbacks:
"meteor": {
"modern": {
"transpiler": { "verbose": true }
}
}
Look for [Transpiler] Used Babel for <file> Fallback. The common cause is
nested imports; see references/meteor-bundler-optimizations.md.
meteor add rspack
On first run the package installs the project-level Rspack setup. App code
moves to Rspack; Meteor still handles Atmosphere packages and produces the
final bundle. Requires entry points in package.json and no nested imports
in app code. To migrate an existing app, use the migrate-to-rspack skill.
Check .meteor/versions, package.json and lockfile. Meteor 3.6 pairs
[email protected] with @meteorjs/[email protected], core/CLI 2.2.7.
Use the release pairings
and dependency minimums.
Rspack transpiles TypeScript. Use meteor-typescript for declarations and
checking; see
checker boundaries.
For new-app skeleton selection or framework-neutral PWA/Workbox setup, read
scaffolds and service workers.
Meteor 3.6 adds separate --pnpm workspace and
--pwa Blaze starters; neither converts an existing app. A worker caches
shell/assets, not offline Meteor data. Existing bundler migrations remain
owned by migrate-to-rspack.
.swcrc > swc.config.js > swc.config.ts
Only the first found is used. Use .swcrc for static config, swc.config.js
for environment-driven config. The file name must be exactly .swcrc, not
config.swcrc.
Install @swc/helpers to externalize SWC helpers (smaller bundles):
meteor npm install --save @swc/helpers
New apps ship with this preinstalled. Normally no further setup is needed;
Meteor's pipeline detects it and emits imports instead of inlining. If only a
production or legacy bundle fails on a helper import, inspect Rspack-generated
and final Meteor output before changing .swcrc or adding manual imports.
On a resolved SWC carrier, ERR_SWC_NATIVE_CACHE needs an absolute owned
SWC_NATIVE_BINDING_CACHE on an executable filesystem. Build-cache cleanup
will not repair it; see meteor-debugging.
rspack.config.js | rspack.config.ts | rspack.config.mjs | rspack.config.cjs
Use defineConfig from @meteorjs/rspack. The function receives a
Meteor parameter with build flags and helpers. See
references/rspack-config.md for the full table and the most useful
helpers (extendSwcConfig, compileWithRspack, compileWithMeteor,
extendConfig, splitVendorChunk, persistDevFiles, disablePlugins,
enablePortableBuild, setCache).
Skip directories the bundler does not need to watch. Same syntax as
.gitignore. Place at any depth; rules apply to the subtree.
docs/
design/
cypress/
scripts/
*.md
!README.md
For per-command rules, set the METEOR_IGNORE env var.
On the 3.6 pairing, read the test-ignore boundaries for ordered user exceptions, included parents and separate generated rules.
Do not copy .gitignore into .meteorignore blindly. Exclude unrelated large
trees that Meteor does not need, but never match the active Rspack build context:
Meteor consumes its generated main and test modules during final assembly.
Rspack also generates _build/, public/build-assets/,
public/build-chunks/, and private/build-assets/. Include active suffixed
variants such as build-assets-test and build-chunks-app-test on Meteor
3.5.2, plus custom context names. Add those paths to the
native ignore configuration of recursive formatters, linters, typecheckers,
test discovery, coverage, and IDEs. .gitignore alone is insufficient.
"modern": true selects Meteor's modern standard minifier. A third-party
Atmosphere package that provides the JavaScript minifier remains part of the
final Meteor assembly even when Rspack compiles app modules. Inventory custom
minifier packages before migration. Keep or remove one only after comparing
production output, source maps, build time, and runtime behavior.
For separate mainModule.legacy or exact architecture entries on Meteor 3.6,
read architecture entry points.
Earlier integrations retain their shared-client behavior.
Dev skips web.browser.legacy and web.cordova with "modern": true.
Production still ships legacy by default. To drop legacy in production
too, add modern to .meteor/platforms:
server
browser
modern
For tool-process OOM or growing watch memory, use the version-specific heap and cache checks.
Meteor 3.5.2 separates development, normal test, and full-app test output
within one context (_build/main-dev, _build/test, _build/app-test, plus
mode-suffixed assets/chunks). This does not isolate Meteor caches, local Mongo,
or ports. For separate local state or two instances of the same mode, use
distinct ports and METEOR_LOCAL_DIR values; older integrations also need this
for cross-mode output isolation:
PORT=3000 METEOR_LOCAL_DIR=.meteor/local-1 meteor run
PORT=3001 METEOR_LOCAL_DIR=.meteor/local-2 meteor run
"modern": true first, clean up Babel fallbacks, then add Rspack._build/, public/build-assets/,
public/build-chunks/, or private/build-assets/. Autogenerated..gitignore prevents code-quality tools from scanning generated
Rspack output. Configure each tool's own ignore mechanism..gitignore to .meteorignore. Git may ignore Rspack's generated
handoff even though Meteor must read it.config.swcrc or rc.swc. Only .swcrc is read.references/meteor-bundler-optimizations.mdreferences/rspack-config.mdreferences/eval-cases.mdmigrate-to-rspack skill.references/architecture-entrypoints.md (opens in a new tab)references/eval-cases.md (opens in a new tab)references/meteor-3.6-workspaces.md (opens in a new tab)references/meteor-bundler-optimizations.md (opens in a new tab)references/rspack-config.md (opens in a new tab)references/scaffolds-and-pwa.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
meteor-build, swc, rspack, bundler-configuration, modern-stack
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