thrownewError("Expected string or integer value.");
}
range=`^${range}.0.0-0`;
}
if(typeofrange!=="string"){
thrownewError("Expected string or integer value.");
}
constlimit=Error.stackTraceLimit;
if(typeoflimit==="number"&&limit<25){
Error.stackTraceLimit=25;
}
leterr;
if(version.slice(0,2)==="7."){
err=newError(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". `+`You'll need to update your @babel/core version.`);
}else{
err=newError(`Requires Babel "${range}", but was loaded with "${version}". `+`If you are sure you have a compatible version of @babel/core, `+`it is likely that something in your build process is loading the `+`wrong version. Inspect the stack trace of this error to look for `+`the first entry that doesn't mention "@babel/core" or "babel-core" `+`to see what is calling Babel.`);