Skip to content

Commit

Permalink
[FIX]: web-ui: Check in @babel/runtime dependency version
Browse files Browse the repository at this point in the history
babel/babel#8462

Webpack fails to load @babel/runtime helper functions (required by antd, rc-*) due to the import specifier not being fully resolved (missing .js, .mjs extension)

This is fixed in @babel/runtime 7.12.0 but antd does not require the latest @babel/runtime by default

So a peer dependency of @babel/runtime@>=7.12.1 (currently latest) is added
  • Loading branch information
lokshunhung committed Nov 23, 2020
1 parent 207e388 commit 494da8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/web-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"moment": "2.29.1"
},
"peerDependencies": {
"@babel/runtime": ">=7.12.1",
"react": ">=16.14.0",
"react-dom": ">=16.14.0",
"react-router-dom": ">=5.2.0"
Expand Down

0 comments on commit 494da8e

Please sign in to comment.