Registry / web-framework / babel-preset-es2015-rollup-vue

babel-preset-es2015-rollup-vue

JSON →
library1.1.0jsnpmunverified

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.

npm install babel-preset-es2015-rollup-vue
INSTALL
IMPORT
SIG · BABEL-PRESET-ES201
B
babel-preset-es2015-rollup-vue
web-frameworkjavascriptv1.1.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 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

default
import preset from 'babel-preset-es2015-rollup-vue'
const preset = require('babel-preset-es2015-rollup-vue')
CommonJS require works but this preset is typically used in a Babel config, not imported directly.

Shows how to use this preset in a Babel config and with Rollup for building Vue.js source.

// .babelrc { "presets": ["babel-preset-es2015-rollup-vue"] } // or in rollup.config.js with rollup-plugin-babel import babel from 'rollup-plugin-babel'; export default { plugins: [ babel({ presets: ['babel-preset-es2015-rollup-vue'] }) ] };
Debug
Known issues
deprecatedThis preset is deprecated and no longer maintained. Use @babel/preset-env instead.
fix
Replace with @babel/preset-env and configure targets.
affects: all
gotchaThis preset is specifically for Vue.js source building with Rollup. It may not work for other projects or setups.
fix
Use a general-purpose preset like @babel/preset-env for most projects.
affects: all
breakingDependency babel-preset-es2015-rollup might have breaking changes that affect this preset.
fix
Check the base preset for updates or switch to @babel/preset-env.
affects: >=1.1.0
Errors
Common errors & fixes
Error: Plugin/Preset files are not allowed to export objects, only functions.
The preset may be incorrectly loaded or the module format is outdated.
fix
Ensure you are using a compatible version of Babel (e.g., Babel 6). This preset is for Babel 6.
Module not found: Error: Can't resolve 'babel-preset-es2015-rollup-vue'
The preset is not installed.
fix
Run 'npm install babel-preset-es2015-rollup-vue' or remove it from .babelrc.
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies
babel-preset-es2015-rolluprequiredBase preset that this preset modifies
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
babel-preset-es2015-rollup-vue — npm install babel-preset-es2015-rollup-vue · libregistry