Registry / web-framework / meteor-vite

meteor-vite

JSON →
library3.8.0jsnpmunverified

meteor-vite integrates Vite with Meteor 3.x, providing an alternative to Meteor's built-in build system. Version 3.8.0 supports Vite 6 and requires Node 20+. It enables fast HMR, ES module imports, and TypeScript support within Meteor projects. Major differentiator: allows using Vite's plugin ecosystem and modern tooling while leveraging Meteor's full-stack framework.

npm install meteor-vite
INSTALL
IMPORT
SIG · METEOR-VITE
M
meteor-vite
web-frameworkjavascriptv3.8.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import meteorVite from 'meteor-vite'
const meteorVite = require('meteor-vite')
ESM-only since v3.
defineConfig
import { defineConfig } from 'meteor-vite'
import { defineConfig } from 'meteor-vite/plugin'
Correct path is top-level export.
withVite
import { withVite } from 'meteor-vite'
const { withVite } = Meteor
withVite is a helper to wrap Meteor package exports.

Creates a basic Vite config for Meteor project using meteor-vite plugin.

// install: meteor npm install meteor-vite vite // create vite.config.ts in project root import meteorVite from 'meteor-vite'; import { defineConfig } from 'vite'; export default defineConfig({ plugins: [meteorVite()], // optional: configure Vite options resolve: { alias: { '/imports': '/imports', }, }, });
Debug
Known issues
breakingRequires Meteor 3 and Node >=20.0.0
fix
Upgrade to Meteor 3 and Node 20+
affects: <2.0.0
breakingPeer dependency vite ^6.0.0, not compatible with earlier Vite versions
fix
Update vite to ^6.0.0
affects: <3.0.0
gotchaDo not manually import virtual modules like '/client/main.jsx' - meteor-vite handles entry point
fix
Let meteor-vite configure the entry point automatically
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'vite'
vite not installed or incorrect version
fix
meteor npm install vite@^6.0.0
Error: The package `vite` is not a peer dependency of `meteor-vite`
Vite version mismatch
fix
Update vite to ^6.0.0
TypeError: meteorVite is not a function
Incorrect import: using default import without default export
fix
Use `import meteorVite from 'meteor-vite'`
Upgrade
Version history
3.8.0latest on npm
Audit
Dependencies
viterequiredpeer dependency for build tooling
Agent activity
2 hits · last 30 days
node
2
Resources
meteor-vite — npm install meteor-vite · libregistry