babel-plugin-dual-import
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -5,4 +5,21 @@ /* eslint-disable */ | ||
var href = getHref(chunkName) | ||
if (!href) return | ||
if (!href) { | ||
if (process.env.NODE_ENV === 'development') { | ||
if (typeof window === 'undefined' || !window.__CSS_CHUNKS__) { | ||
console.warn( | ||
'[DUAL-IMPORT] no css chunks hash found at "window.__CSS_CHUNKS__"' | ||
) | ||
return | ||
} | ||
console.warn( | ||
'[DUAL-IMPORT] no chunk, ', | ||
chunkName, | ||
', found in "window.__CSS_CHUNKS__"' | ||
) | ||
} | ||
return | ||
} | ||
var head = document.getElementsByTagName('head')[0] | ||
@@ -9,0 +26,0 @@ var link = document.createElement('link') |
{ | ||
"name": "babel-plugin-dual-import", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Babel plugin to import() both js + css", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
323415
553