babel-plugin-universal-import
Advanced tools
Comparing version 3.0.2 to 4.0.0-alpha.0
12
index.js
@@ -37,3 +37,3 @@ 'use-strict' | ||
if (importArgNode.quasis) { | ||
let quasis = importArgNode.quasis.slice(0) | ||
const quasis = importArgNode.quasis.slice(0) | ||
const baseDir = trimChunkNameBaseDir(quasis[0].value.cooked) | ||
@@ -44,4 +44,2 @@ quasis[0] = Object.assign({}, quasis[0], { | ||
quasis = quasis.map((quasi, i) => (i > 0 ? prepareQuasi(quasi) : quasi)) | ||
return Object.assign({}, importArgNode, { | ||
@@ -56,10 +54,2 @@ quasis | ||
function prepareQuasi(quasi) { | ||
const newPath = prepareChunkNamePath(quasi.value.cooked) | ||
return Object.assign({}, quasi, { | ||
value: { raw: newPath, cooked: newPath } | ||
}) | ||
} | ||
function getMagicCommentChunkName(importArgNode) { | ||
@@ -66,0 +56,0 @@ const { quasis, expressions } = importArgNode |
{ | ||
"name": "babel-plugin-universal-import", | ||
"version": "3.0.2", | ||
"version": "4.0.0-alpha.0", | ||
"description": "Babel plugin to transform import() into its Universal counterpart", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"contributors": [ | ||
"Zack Jackson <zackary.l.jackson@gmail.com> (https://github.com/zackljackson)" | ||
"Zack Jackson <zackary.l.jackson@gmail.com> (https://github.com/ScriptedAlchemy)" | ||
], | ||
@@ -28,2 +28,10 @@ "license": "MIT", | ||
}, | ||
"keywords": [ | ||
"babel", | ||
"universal", | ||
"react", | ||
"universal import", | ||
"redux-first-router", | ||
"ruc" | ||
], | ||
"devDependencies": { | ||
@@ -30,0 +38,0 @@ "@babel/cli": "^7.0.0", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
362498
15
220
1