Releases: sharetribe/create-react-app
Sharetribe-scripts v6.0.2
Changes
- Update Loadable Components library: use "@loadable/component": "^5.16.4", "@loadable/server": "^5.16.5", on client app.
- Remove warning when Custom CSS Properties are added to other scopes than :root. That was a bug in our custom PostCSS plugin.
[email protected]
Bug fixes
PR: #25
Remove vendor code chunk
splitChunks was reintroduced prematurely.
CRA 5 is discussing reintroducing it, but the previous (CRA4) style does not work with 'async' marked thunk functions.
I.e. this was removed:
// Sharetribe custom: create vendor chunk
// CRA v5, removed this splitChunks feature, but they are planning to reintroduce it.
// https://github.com/facebook/create-react-app/pull/11763
splitChunks: isEnvDevelopment
? undefined
: {
chunks: 'all',
},
Error when using env variable: GENERATE_SOURCEMAP=false
GENERATE_SOURCEMAP=false caused an error since it modified the structure of webpack.config.js
[email protected]
This release updates Create React App from v4.0.2 to v5.0.1.
It includes major changes to several core dependencies.
Highlights from CRA update:
- webpack 5 (facebook#11201)
- Jest 27 (facebook#11338)
- ESLint 8 (facebook#11375)
- PostCSS 8 (facebook#11121)
- Fast Refresh improvements and bug fixes (facebook#11105)
- Support for Tailwind (facebook#11717)
- Improved package manager detection (facebook#11322)
- Unpinned all dependencies for better compatibility with other tools (facebook#11474)
- Dropped support for Node 10 and 12
Check #24 to see the changes.
NOTE: this means quite many changes to CSS files!
Read more from FTW-daily's PR:
sharetribe/ftw-daily#1531
[email protected]
This release improves the instructions show after running yarn build
. The default instructions are replaced with FTW specific instructions.
See PR #22 for changes.
[email protected]
This release adds support for code splitting for both client and the server.
The main idea is to split the build scripts into two: build for web and build-server for the server. They both use the same shared Webpack configuration file, but there are differences in what things are enabled in the configuration based on the build target. In general, we want to only have a minimal configuration that works to be able to take upstream updates from the original CRA project. This means for example that there are extra things in the server build that would only make sense for the original web build.
Check #20 to see the changes.
Note that using this version of sharetribe-scripts
together with Flex Template for Web (FTW) requires a recent version of FTW daily or FTW hourly. See the FTW release notes for more information:
https://github.com/sharetribe/ftw-daily/releases/tag/v8.0.0
https://github.com/sharetribe/ftw-hourly/releases/tag/v10.0.0
[email protected]
This release takes the 4.0.2 updates from the upstream CRA:
https://github.com/sharetribe/create-react-app/blob/master/CHANGELOG.md#402-2021-02-03
[email protected]
Changes:
- Updates from upstream: CRA v4.0.0.
- Allow vanilla CSS by removing CSS Modules enforcement from all the *.css files.
We start to use file naming pattern: vanilla CSS =>*.css
, CSS Modules =>*.module.css
. This has become a standard nowadays. - Start using live CSS Custom Properties (CSS Variables).
[email protected]
Update from upstream.
Note: CRA v3.3.0 (which is included in this release) added support for optional chaining!
[email protected]
Update from upstream
[email protected]
Testing v3.1.1