find-imports
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -17,2 +17,9 @@ /* eslint no-console: 0 */ | ||
var babelOptions = {}; | ||
try { | ||
babelOptions = JSON.parse(fs.readFileSync('.babelrc', 'utf-8')); | ||
} catch (e) { | ||
// No custom babel configuration found - using defaults | ||
} | ||
var defaultOptions = { | ||
@@ -84,3 +91,3 @@ packageImports: true, | ||
try { | ||
var result = babel.transformFileSync(filepath); | ||
var result = babel.transformFileSync(filepath, babelOptions); | ||
var tree = esprima.parse(result.code, { | ||
@@ -87,0 +94,0 @@ sourceType: 'module' |
{ | ||
"name": "find-imports", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Find all imported modules in JavaScript files.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/cheton/find-imports", |
Sorry, the diff of this file is not supported yet
32801
793