Babel preset that enables loose mode for all es2015 plugins. Latest version 8.0.0, deprecated since Babel v6.13+ because the official babel-preset-es2015 now natively supports loose mode via configuration. This preset works by modifying babel-preset-es2015 using modify-babel-preset. It requires installing both babel-preset-es2015-loose and babel-preset-es2015. No longer recommended for Babel v6.13+; directly use ["es2015", {"loose": true}] instead.
npm install babel-preset-es2015-looseVerified import paths — ran on the pinned version, not inferred.
Install, configure in .babelrc, and run a transpilation example using the loose preset. (250+ chars)
Replace 'es2015-loose' with ["es2015", {"loose": true}] in your Babel config and uninstall babel-preset-es2015-loose.Ensure babel-preset-es2015 is listed as a dependency in package.json and installed.
Test thoroughly in target environments, or avoid loose mode for spec compliance.
Consider using official babel-preset-es2015 directly with loose option if on Babel v6.13+.
Run: npm install --save-dev babel-preset-es2015
Verify babel-preset-es2015-loose is in node_modules and listed in package.json devDependencies.
Update babel-preset-es2015 to version 6.0.0 or higher.