Registry / babel-preset-es2015-loose-rollup
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
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ // In .babelrc: "presets": ["es2015-loose-rollup"]
✗ // Using require in code: const preset = require('babel-preset-es2015-loose-rollup')
Presets are configured via .babelrc or programmatic API, not directly imported as module.
name
✓ // Correct preset name string: 'es2015-loose-rollup'
✗ // Wrong: 'es2015-loose-rollup' misspelled or using old 'es2015' prefix
Preset name must match exactly. Babel 6 only; for Babel 7 use @babel/preset-env with options.
config
✓ require('babel-core').transform(code, { presets: ['es2015-loose-rollup'] })
✗ // Common mistake: passing object instead of string: require('babel-core').transform(code, { presets: [require('babel-preset-es2015-loose-rollup')] })
Preset names are strings, not required modules, in Babel 6 API.
Shows how to configure the preset in .babelrc for Babel 6 with Rollup.
{
"presets": ["es2015-loose-rollup"]
}
Errors
Common errors & fixes
Error: Cannot find module 'babel-preset-es2015-loose-rollup'
Preset name typo or not installed locally or globally.
fixnpm install --save-dev babel-preset-es2015-loose-rollup and ensure .babelrc uses exact string.
Error: Plugin/Cannot find preset 'es2015-loose-rollup' relative to directory ...
Preset not in node_modules or misconfigured path.
fixInstall the preset locally and check that .babelrc is in the correct root directory.
Requiring the preset directly in code throws 'Preset must be a string' or similar.
Passing the required module instead of the preset name string in Babel API.
fixUse presets: ['es2015-loose-rollup'] not presets: [require('babel-preset-es2015-loose-rollup')]. Babel 7: Error: [BABEL] unknown preset: es2015-loose-rollup (While processing preset: ...)
Using Babel 7 + babel-preset-es2015-loose-rollup which is incompatible.
fixUpgrade to @babel/preset-env.
Audit
Dependencies
babel-preset-es2015-looserequiredProvides loose mode transformations for ES2015
babel-preset-es2015-rolluprequiredOptimizes ES2015 modules for Rollup tree-shaking