{"library":"maptalks-rollup-plugin-babel","title":"rollup-plugin-babel","description":"Rollup plugin for seamless integration with Babel. Version 3.0.2 is the latest stable release. It allows transpiling ES6/7 code with Babel while preserving Rollup's tree-shaking and module resolution, avoiding intermediate files and sourcemap issues. Unlike running Babel before Rollup, this plugin handles transpilation per-file, preventing Babel helper duplication. Requires babel-core 6 or 7 as a peer dependency. Key differentiator: integrates directly into Rollup's plugin system, supporting .babelrc configuration and options like include/exclude patterns. Deprecated in favor of @rollup/plugin-babel as of Rollup 1.0.","language":"javascript","status":"deprecated","last_verified":"Fri May 01","install":{"commands":["npm install maptalks-rollup-plugin-babel"],"cli":null},"imports":["import babel from 'rollup-plugin-babel'","const babel = require('rollup-plugin-babel')","import babel from 'rollup-plugin-babel'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport babel from 'rollup-plugin-babel';\n\nrollup({\n  input: 'src/main.js',\n  plugins: [\n    babel({\n      exclude: 'node_modules/**',\n      babelrc: false,\n      presets: [['@babel/preset-env', { modules: false }]],\n      plugins: ['@babel/plugin-external-helpers']\n    })\n  ]\n}).then(bundle => {\n  bundle.write({ file: 'dist/bundle.js', format: 'cjs' });\n}).catch(err => console.error(err));","lang":"javascript","description":"Shows basic Rollup config with Babel plugin, excluding node_modules and disabling module transformation.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}