babel-plugin-universal-import
Advanced tools
Comparing version 1.1.8 to 1.1.9
{ | ||
"name": "babel-plugin-universal-import", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "Babel plugin to transform import() into its Universal counterpart", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,10 +7,12 @@ /* eslint-disable */ | ||
var load = config.load | ||
config.then = cb => | ||
load().then(function(res) { | ||
cb && cb(res) | ||
config.then = function(cb) { | ||
return load().then(function(res) { | ||
return cb && cb(res) | ||
}) | ||
config.catch = cb => | ||
load().catch(function(e) { | ||
e => cb && cb(e) | ||
} | ||
config.catch = function(cb) { | ||
return load().catch(function(e) { | ||
return cb && cb(e) | ||
}) | ||
} | ||
return config | ||
@@ -17,0 +19,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
351031
701