🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

babel-plugin-universal-import

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-universal-import - npm Package Compare versions

Comparing version

to
1.1.7

19

importCss.js

@@ -5,4 +5,21 @@ /* eslint-disable */

var href = getHref(chunkName)
if (!chunkName) return
if (!href) {
if (process.env.NODE_ENV === 'development') {
if (typeof window === 'undefined' || !window.__CSS_CHUNKS__) {
console.warn(
'[UNIVERSAL-IMPORT] no css chunks hash found at "window.__CSS_CHUNKS__"'
)
return
}
console.warn(
'[UNIVERSAL-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')

16

package.json
{
"name": "babel-plugin-universal-import",
"version": "1.1.6",
"version": "1.1.7",
"description": "Babel plugin to transform import() into its Universal counterpart",

@@ -28,4 +28,9 @@ "main": "index.js",

"babel-eslint": "^7.2.3",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-tester": "^3.1.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"babylon-options": "^1.1.2",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.0.0",

@@ -44,7 +49,3 @@ "eslint": "^3.19.0",

"semantic-release": "^6.3.6",
"travis-github-status": "^1.6.1",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1"
"travis-github-status": "^1.6.1"
},

@@ -62,3 +63,4 @@ "config": {

]
}
},
"dependencies": {}
}

@@ -7,4 +7,10 @@ /* eslint-disable */

var load = config.load
config.then = cb => load().then(res => cb && cb(res))
config.catch = cb => load().catch(e => cb && cb(e))
config.then = cb =>
load().then(function(res) {
cb && cb(res)
})
config.catch = cb =>
load().catch(function(e) {
e => cb && cb(e)
})
return config

@@ -11,0 +17,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

Sorry, the diff of this file is not supported yet