react-loadable-ssr-addon
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -12,3 +12,4 @@ react-loadable-ssr-addon is authored by: | ||
* Sébastien Lorber <slorber@users.noreply.github.com> | ||
* Troy Rhinehart <81650390+trhinehart-godaddy@users.noreply.github.com> | ||
* dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | ||
* endiliey <endiliey@gmail.com> |
@@ -22,3 +22,9 @@ "use strict"; | ||
var WEBPACK_VERSION = require('webpack/package.json').version; | ||
var WEBPACK_VERSION = function GetVersion() { | ||
try { | ||
return require('webpack/package.json').version; | ||
} catch (err) { | ||
return ''; | ||
} | ||
}(); | ||
@@ -248,3 +254,5 @@ var WEBPACK_5 = WEBPACK_VERSION.startsWith('5.'); | ||
if (!_fs["default"].existsSync(fileDir)) { | ||
_fs["default"].mkdirSync(fileDir); | ||
_fs["default"].mkdirSync(fileDir, { | ||
recursive: true | ||
}); | ||
} | ||
@@ -251,0 +259,0 @@ } catch (err) { |
{ | ||
"name": "react-loadable-ssr-addon", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Server Side Render add-on for React Loadable. Load splitted chunks was never that easy.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -340,2 +340,5 @@ # React Loadable SSR Add-on | ||
## Release History | ||
* 1.0.2 | ||
* FIX: [Fix support for nested `output.path`](https://github.com/themgoncalves/react-loadable-ssr-addon/pull/30) | ||
* FIX: [Fix support for common js module](https://github.com/themgoncalves/react-loadable-ssr-addon/pull/31) | ||
* 1.0.1 | ||
@@ -342,0 +345,0 @@ * FIX: [Webpack v5 deprecation warning](https://github.com/themgoncalves/react-loadable-ssr-addon/pull/27) |
@@ -32,3 +32,2 @@ import test from 'ava'; | ||
test('returns nothing when there is no match', (t) => { | ||
@@ -40,3 +39,2 @@ bundles = getBundles(manifest, ['foo-bar', 'foo', null, undefined]); | ||
test('should work even with null/undefined manifest or modules', (t) => { | ||
@@ -43,0 +41,0 @@ bundles = getBundles(manifest, null); |
@@ -15,3 +15,10 @@ /** | ||
const WEBPACK_VERSION = require('webpack/package.json').version; | ||
const WEBPACK_VERSION = (function GetVersion() { | ||
try { | ||
// eslint-disable-next-line global-require | ||
return require('webpack/package.json').version; | ||
} catch (err) { | ||
return ''; | ||
} | ||
}()); | ||
@@ -331,3 +338,3 @@ const WEBPACK_5 = WEBPACK_VERSION.startsWith('5.'); | ||
if (!fs.existsSync(fileDir)) { | ||
fs.mkdirSync(fileDir); | ||
fs.mkdirSync(fileDir, { recursive: true }); | ||
} | ||
@@ -334,0 +341,0 @@ } catch (err) { |
@@ -13,3 +13,2 @@ import test from 'ava'; | ||
test('sanitize file hash', (t) => { | ||
@@ -30,3 +29,2 @@ const hashes = ['?', '#']; | ||
test('should work even with null/undefined arg', (t) => { | ||
@@ -33,0 +31,0 @@ const filePaths = ['', null, undefined]; |
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
400459
1397
443