forked from facebook/create-react-app
-
Notifications
You must be signed in to change notification settings - Fork 32
BRS 7 - Full SSR Hard Source and Loadable support #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
5271192
[NO JIRA]: Adding loadable component support
olliecurtis a22a5a4
Output ssr and web chunks to different folders (#73)
olliecurtis e9397e2
* Add support for development env SSR (start-ssr)
ajones513 fcbd150
CSS loaders for browserless env, hard source excludes as recommended
ajones513 6efddf0
Build marker files, hash JS to prevent in-place modification on code …
ajones513 e1a1f1c
iconv ignore
ajones513 ace0ea8
No mini css extract plugin for SSR
ajones513 e249d51
Nicer diff
ajones513 10a9395
whitespace
ajones513 84e8580
Whitespace
ajones513 d9578f8
require.resolve babel plugin
ajones513 6cefe2f
Register hooks first, for both SSR and non-SSR
ajones513 722bc62
Status file tweaks
ajones513 ed4062e
Make hard source plugin switchable
ajones513 ad4c053
Hard source environmentHash allowing for standalone BRS install optim…
ajones513 6f76253
Fix iconv loader
ajones513 83e5434
iconv fix needed for non-SSR too to prevent warning
ajones513 9cd3c7e
Merge pull request #1 from ajones513/iconv-fix
ajones513 a3d057e
Update CHANGELOG.md
ajones513 588ef25
Update CHANGELOG.md
ajones513 2d52632
Update CHANGELOG.md
ajones513 71ed294
Adding new ignore option
olliecurtis 21c0119
Merge pull request #2 from olliecurtis/custom
olliecurtis 6d0ee70
Adding colors to noParse
olliecurtis b958eca
Revert - Adding colors to noParse
olliecurtis f4cb8c3
[NO JIRA]: Backport updates
olliecurtis c084cf6
Version updates
olliecurtis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const reactScriptsRoot = path.resolve(__dirname, '..'); | ||
const haveIsolatedDependencies = | ||
fs.existsSync(path.join(reactScriptsRoot, 'package-lock.json')) || | ||
fs.existsSync(path.join(reactScriptsRoot, 'yarn.lock')); | ||
|
||
module.exports = { | ||
root: haveIsolatedDependencies ? reactScriptsRoot : process.cwd(), | ||
directories: [], | ||
files: ['package-lock.json', 'yarn.lock'], | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than an env variable this might be better as a config value instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As it's experimental (mainly because mzgoddard/hard-source-webpack-plugin#419 + waiting for Webpack 5), I've found value in flipping it on/off at will - so was thinking the environment variables maybe gave more flexibility.
If there's cleaner way without needing to make a code change in the consuming project that would still be good.