Ignore babelrc in ?module mode

Fixes #84
This commit is contained in:
Michael Jackson 2018-01-09 21:41:31 -08:00
parent a0d1479edd
commit 79e50ec98c
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@ const MaximumDepth = 128
function rewriteBareModuleIdentifiers(file, packageConfig, callback) {
const dependencies = Object.assign({}, packageConfig.peerDependencies, packageConfig.dependencies)
const options = {
// Ignore .babelrc and package.json babel config
// because we haven't installed dependencies so
// we can't load plugins; see #84
babelrc: false,
plugins: [unpkgRewrite(dependencies)]
}