import-glob
Advanced tools
Comparing version 1.1.0 to 1.2.0
var glob = require("glob"); | ||
var path = require("path"); | ||
var merge = require('deepmerge') | ||
@@ -21,3 +22,3 @@ module.exports = function(source) { | ||
if (result) { | ||
result += '\nlet ' + obj + ' = Object.assign(' + modules.join(', ') + ')'; | ||
result += '\nlet ' + obj + ' = [' + modules.join(', ') + ']'; | ||
} | ||
@@ -24,0 +25,0 @@ return result; |
{ | ||
"name": "import-glob", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "ES6 import with glob patterns (preloader for Webpack)", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -14,3 +14,3 @@ # import-glob | ||
modules = Object.assign(module0, module1, module2) | ||
modules = [module0, module1, module2] | ||
``` | ||
@@ -24,3 +24,3 @@ | ||
## Usage | ||
You can use it one of two ways, the recommended way is to use it as a preloader for files you know has import statements. | ||
You can use it one of two ways, the recommended way is to use it as a preloader | ||
@@ -27,0 +27,0 @@ ```js |
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
27
2073