component-kit-builder
Advanced tools
Comparing version 1.0.9 to 1.0.10
12
index.js
@@ -15,5 +15,11 @@ 'use strict'; | ||
}, {}); | ||
const moduleMap = values(uniquePaths).reduce((obj, key) => Object.assign({}, obj, { | ||
[path.relative('.', key)]: context(key) | ||
}), {}); | ||
const moduleMap = values(uniquePaths).reduce((obj, key) => { | ||
let contextForKey = context(key); | ||
if (contextForKey.default) { | ||
contextForKey = contextForKey.default; | ||
} | ||
return Object.assign({}, obj, { | ||
[path.relative('.', key)]: contextForKey | ||
}) | ||
}, {}); | ||
let wrappersList = ['redux', 'relay']; | ||
@@ -20,0 +26,0 @@ if (moduleMap.index && moduleMap.index.wrappers) { |
{ | ||
"name": "component-kit-builder", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "builds component kits using webpack require.context", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -78,2 +78,7 @@ const assert = require('assert'); | ||
}); | ||
it('should work with es6-style default exports', function () { | ||
fs.writeFileSync(path.join(myComponentDir, 'redux.js'), `module.exports = {default: x => y => y(\`redux \${x}\`)};`); | ||
buildBundle(); | ||
require(bundlePath); | ||
}); | ||
}); |
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
6975
123
7