Skip to content
This repository was archived by the owner on Jan 9, 2019. It is now read-only.

Commit 43511bc

Browse files
committed
Support server-side rendering of react-loadable components, release 2.4.0
1 parent 38e8ec8 commit 43511bc

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Common scripts for running React-based apps and websites.
1313
- Production
1414
- Minified asset builds (both JS and CSS) with JS tree shaking
1515
- Splits JS assets into chunks
16+
- Server-side rendering of [react-loadable](https://github.com/thejameskyle/react-loadable) components (via [babel-plugin-import-inspector](https://github.com/thejameskyle/babel-plugin-import-inspector))
1617
- Supported Browsers: last 2 major versions of current browsers, IE11, > 1% in US
1718
- Configured in CSS Autoprefixer
1819
- Promise polyfill for IE11

config/babel.prod.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
22
plugins: [
3+
['import-inspector', { serverSideRequirePath: true }],
34
'lodash',
45
'transform-function-bind'
56
],

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stoke-react-scripts",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
44
"description": "Common scripts for running React-based apps and websites",
55
"repository": "stokestudio/stoke-react-scripts",
66
"author": "Kevin Wade <kevin@stokestudio.com>",
@@ -16,6 +16,7 @@
1616
"autoprefixer": "^7.1.1",
1717
"babel-core": "^6.25.0",
1818
"babel-loader": "^7.1.1",
19+
"babel-plugin-import-inspector": "^2.0.0",
1920
"babel-plugin-lodash": "^3.2.9",
2021
"babel-plugin-transform-function-bind": "^6.22.0",
2122
"babel-polyfill": "^6.23.0",

yarn.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,10 @@ babel-plugin-check-es2015-constants@^6.22.0:
505505
dependencies:
506506
babel-runtime "^6.22.0"
507507

508+
babel-plugin-import-inspector@^2.0.0:
509+
version "2.0.0"
510+
resolved "https://registry.yarnpkg.com/babel-plugin-import-inspector/-/babel-plugin-import-inspector-2.0.0.tgz#6d422309f4f192313310cfde1556f7875cae5d07"
511+
508512
babel-plugin-lodash@^3.2.9:
509513
version "3.2.11"
510514
resolved "https://registry.yarnpkg.com/babel-plugin-lodash/-/babel-plugin-lodash-3.2.11.tgz#21c8fdec9fe1835efaa737873e3902bdd66d5701"

0 commit comments

Comments
 (0)