A Babel plugin that enables importing from Meteor packages (e.g., 'meteor/check') in code not processed by isobuild, such as custom server-side scripts or build tools. It transforms ES module import statements into assignments from the global Package namespace (Package['meteor']['check']). Version 1.0.3 is the latest stable release; the project has a low release cadence. Unlike direct usage of require('meteor/check'), this plugin integrates with Babel's transformation pipeline, supporting destructuring and named exports. It assumes Meteor's boot.js has been loaded to populate the Package global, making it suitable for server-side tooling or testing environments outside the Meteor build system.
npm install babel-plugin-meteor-importsVerified import paths — ran on the pinned version, not inferred.
Shows how to install, configure, and use the plugin to transform Meteor import statements into Package globals.
Ensure boot.js from .meteor/local/build/programs/server is required before your code.
Stay on Babel 6/7 or verify compatibility manually.
Add: require('<path-to-meteor-project>/.meteor/local/build/programs/server/boot.js');Run: npm install --save-dev babel-plugin-meteor-imports