avet-utils
Advanced tools
Comparing version 1.0.0-26 to 1.0.0-27
@@ -11,4 +11,4 @@ 'use strict'; | ||
module.exports = { | ||
IS_BUNDLED_PAGE: /^bundles[/\\]page.*\.js$/, | ||
MATCH_ROUTE_NAME: /^bundles[/\\]page[/\\](.*)\.js$/, | ||
IS_BUNDLED_PAGE: /^bundles[/\\]page.*\.(js|jsx)$/, | ||
MATCH_ROUTE_NAME: /^bundles[/\\]page[/\\](.*)\.(js|jsx)$/, | ||
@@ -24,3 +24,4 @@ getAvailableChunks: function getAvailableChunks(distDir) { | ||
if (/\.js$/.test(filename)) { | ||
chunksMap[filename] = true; | ||
var chunkName = filename.replace(/-.*/, ''); | ||
chunksMap[chunkName] = filename; | ||
} | ||
@@ -27,0 +28,0 @@ }); |
@@ -264,9 +264,10 @@ 'use strict'; | ||
if (i.slice(-3) === '.js') return [i]; | ||
if (i.slice(-4) === '.jsx') return [i]; | ||
if (i.slice(-5) === '.json') return [i]; | ||
if (i[i.length - 1] === sep) { | ||
return [i + 'index.js', i + 'index.json']; | ||
return [i + 'index.js', i + 'index.jsx', i + 'index.json']; | ||
} | ||
return [i + '.js', join(i, 'index.js'), i + '.json', join('i', 'index.json')]; | ||
return [i + '.js', join(i, 'index.js'), i + '.jsx', join(i, 'index.jsx'), i + '.json', join(i, 'index.json')]; | ||
} | ||
@@ -273,0 +274,0 @@ |
{ | ||
"name": "avet-utils", | ||
"description": "Avet utils for all avet projects", | ||
"version": "1.0.0-26", | ||
"version": "1.0.0-27", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "dev": "taskr dev", |
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
17719
466