{"library":"meteor-babel","title":"meteor-babel","description":"A Babel wrapper package designed specifically for use with the Meteor framework, currently at v7.13.0. It provides a pre-configured Babel compilation pipeline that integrates seamlessly with Meteor's build system, supporting ES6/ES7 transpilation, TypeScript, and various syntax transformations. Differentiators include Meteor-specific plugins, automatic dependency management, and compatibility with Meteor's module system. Release cadence is irregular, with major version bumps tied to Meteor updates. vs. plain Babel: adds Meteor-specific transforms and optimizations, eases configuration for Meteor projects.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install meteor-babel"],"cli":null},"imports":["import meteorBabel from 'meteor-babel'","import { compile } from 'meteor-babel'","import { setCacheDir } from 'meteor-babel'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import meteorBabel from 'meteor-babel';\nimport { compile } from 'meteor-babel';\n\nconst sourceCode = `\n  const x = (a, b) => a + b;\n  export default x;\n`;\n\n// Compile with default options\nconst result = compile(sourceCode, {});\nconsole.log(result.code);\n\n// Or use the meteorBabel object for more control\nconst babelInstance = new meteorBabel.Babel();\nconst transformed = babelInstance.transform(sourceCode, {\n  filename: 'test.js',\n  sourceMaps: true,\n});\nconsole.log(transformed.code);","lang":"typescript","description":"Shows how to import meteor-babel and use compile function and Babel class to transpile ES6 code.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}