Skip to content

bug: Dynamically imported react-ace does not load when built with swcMinify (in Next.js 12.0.8)

Notifications You must be signed in to change notification settings

arnemahl/swc-minify-react-ace-loading-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bug

Dynamically imported react-ace does not load when built with swcMinify (in Next.js 12.0.8).

To reproduce

  1. yarn
  2. yarn build
  3. yarn start
  4. Open http://localhost:3000

Behavior

Just shows that the code is loading.

Expected behavior

Should show code editor after loading very briefly.

(Can see that if you run yarn dev instead, or disable swcMinify in next.config.js before you build the code).

About

bug: Dynamically imported react-ace does not load when built with swcMinify (in Next.js 12.0.8)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published