feat: React 18 + automatic JSX runtime + build --dev (#8961)

This commit is contained in:
Sébastien Lorber 2023-06-08 19:40:15 +02:00 committed by GitHub
parent 76f920359b
commit 187e5aa218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 404 additions and 209 deletions

View file

@ -129,6 +129,11 @@ module.exports = async function createConfigAsync() {
syntax: 'typescript',
tsx: true,
},
transform: {
react: {
runtime: 'automatic',
},
},
target: 'es2017',
},
module: {
@ -258,7 +263,7 @@ module.exports = async function createConfigAsync() {
[
'pwa',
{
debug: isDeployPreview,
// debug: isDeployPreview,
offlineModeActivationStrategies: [
'appInstalled',
'standalone',