{"id":19285,"library":"babel-preset-es2015-rollup-vue","title":"babel-preset-es2015-rollup-vue","description":"A Babel preset tailored for building Vue.js source code with Rollup. It is based on babel-preset-es2015-rollup but excludes the ES6 symbol typeof transform to avoid issues with Rollup's tree-shaking. Version 1.1.0 is the current stable release. This preset is deprecated and should not be used for new projects; use @babel/preset-env instead.","status":"deprecated","version":"1.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/yyx990803/babel-preset-es2015-rollup-vue","tags":["javascript"],"install":[{"cmd":"npm install babel-preset-es2015-rollup-vue","lang":"bash","label":"npm"},{"cmd":"yarn add babel-preset-es2015-rollup-vue","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-preset-es2015-rollup-vue","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Base preset that this preset modifies","package":"babel-preset-es2015-rollup","optional":false}],"imports":[{"note":"CommonJS require works but this preset is typically used in a Babel config, not imported directly.","wrong":"const preset = require('babel-preset-es2015-rollup-vue')","symbol":"default","correct":"import preset from 'babel-preset-es2015-rollup-vue'"}],"quickstart":{"code":"// .babelrc\n{\n  \"presets\": [\"babel-preset-es2015-rollup-vue\"]\n}\n\n// or in rollup.config.js with rollup-plugin-babel\nimport babel from 'rollup-plugin-babel';\n\nexport default {\n  plugins: [\n    babel({\n      presets: ['babel-preset-es2015-rollup-vue']\n    })\n  ]\n};","lang":"javascript","description":"Shows how to use this preset in a Babel config and with Rollup for building Vue.js source."},"warnings":[{"fix":"Replace with @babel/preset-env and configure targets.","message":"This preset is deprecated and no longer maintained. Use @babel/preset-env instead.","severity":"deprecated","affected_versions":"all"},{"fix":"Use a general-purpose preset like @babel/preset-env for most projects.","message":"This preset is specifically for Vue.js source building with Rollup. It may not work for other projects or setups.","severity":"gotcha","affected_versions":"all"},{"fix":"Check the base preset for updates or switch to @babel/preset-env.","message":"Dependency babel-preset-es2015-rollup might have breaking changes that affect this preset.","severity":"breaking","affected_versions":">=1.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Ensure you are using a compatible version of Babel (e.g., Babel 6). This preset is for Babel 6.","cause":"The preset may be incorrectly loaded or the module format is outdated.","error":"Error: Plugin/Preset files are not allowed to export objects, only functions."},{"fix":"Run 'npm install babel-preset-es2015-rollup-vue' or remove it from .babelrc.","cause":"The preset is not installed.","error":"Module not found: Error: Can't resolve 'babel-preset-es2015-rollup-vue'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}