mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 00:17:14 +02:00
feat: React 18 + automatic JSX runtime + build --dev (#8961)
This commit is contained in:
parent
76f920359b
commit
187e5aa218
69 changed files with 404 additions and 209 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue