Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
allow custom runtime-helpers moduleName – fixes #95
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 13, 2016
1 parent bc0714c commit 1eb55ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preflightCheck.js
Expand Up @@ -22,7 +22,7 @@ export default function preflightCheck ( options, dir ) {

if ( !~check.indexOf( 'export default' ) && !~check.indexOf( 'export { Foo as default }' ) ) throw new Error( 'It looks like your Babel configuration specifies a module transformer. Please disable it. See https://github.com/rollup/rollup-plugin-babel#configuring-babel for more information' );

if ( /import _classCallCheck from ["']babel-runtime/.test( check ) ) helpers = RUNTIME;
if ( ~check.indexOf( 'import _classCallCheck from' ) ) helpers = RUNTIME;
else if ( ~check.indexOf( 'function _classCallCheck' ) ) helpers = INLINE;
else if ( ~check.indexOf( 'babelHelpers' ) ) helpers = BUNDLED;

Expand Down

0 comments on commit 1eb55ac

Please sign in to comment.