@appigram/react-code-split-ssr 1.2.12 → 1.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,7 +30,7 @@ const generateRoutes = (options = {
30
30
  const Element = isRouteMatched ? preloadedComp.default : bundle;
31
31
  return isRouteMatched ? _jsx(Element, {}) : Element;
32
32
  };
33
- return (_jsxs(Routes, { children: [...options.routes.map((props, i) => {
33
+ return (_jsxs(Routes, { children: [options.routes.map((props, i) => {
34
34
  return (_jsx(Route, { path: props.path, element: renderElement(props.path, props.element) }, i));
35
35
  }), _jsx(Route, { path: '*', element: renderElement(null, options.notFoundComp) }, 'nf')] }));
36
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appigram/react-code-split-ssr",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "description": "React code splitting with SSR",
5
5
  "main": "./lib/index.js",
6
6
  "scripts": {
@@ -50,7 +50,7 @@ const generateRoutes = async (
50
50
 
51
51
  return (
52
52
  <Routes>
53
- {...options.routes.map((props, i) => {
53
+ {options.routes.map((props, i) => {
54
54
  return (
55
55
  <Route
56
56
  key={i}