mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
9 lines
241 B
JavaScript
9 lines
241 B
JavaScript
const nodeVersionMatch = /^v(\d)/.exec( process.version );
|
|
const legacy = +nodeVersionMatch[1] < 6;
|
|
const babelrc = require( '../package.json' ).babel;
|
|
|
|
if ( legacy ) {
|
|
require( 'babel-register' )( babelrc );
|
|
} else {
|
|
require( 'reify' );
|
|
} |