jest-webpack-alias
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -9,2 +9,6 @@ var _ = require('lodash'); | ||
function extractES6DefaultExportsObject(inExports) { | ||
return typeof _.get(inExports, 'default') === 'object' ? inExports.default : inExports; | ||
} | ||
function read(pmodule, dir) { | ||
@@ -18,3 +22,3 @@ var packageJson = pkginfo.read(pmodule, dir); | ||
var webpackFile = path.join(pkgJsonDir, configFile); | ||
var webpackSettings = require(webpackFile); | ||
var webpackSettings = extractES6DefaultExportsObject(require(webpackFile)); | ||
@@ -21,0 +25,0 @@ if (profile) { |
{ | ||
"name": "jest-webpack-alias", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Preprocessor for Jest that is able to resolve require() statements using webpack aliases.", | ||
@@ -5,0 +5,0 @@ "main": "lib/preprocessor.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19202
213