-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up the Advantage page to mount a React app #10089
Set up the Advantage page to mount a React app #10089
Conversation
@@ -7,7 +7,7 @@ | |||
"esModuleInterop": true, | |||
"forceConsistentCasingInFileNames": true, | |||
"isolatedModules": true, | |||
"jsx": "react-jsx", | |||
"jsx": "react", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems esbuild
does not support the new JSX transform yet so I've reverted this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that esbuild has to add support for the React 17 JSX transform so I guess it just wasn't going to build with "react-jsx"
(there were conflicting errors about needing React to be imported/not imported).
More details in the issue: evanw/esbuild#334.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -7,7 +7,7 @@ | |||
"esModuleInterop": true, | |||
"forceConsistentCasingInFileNames": true, | |||
"isolatedModules": true, | |||
"jsx": "react-jsx", | |||
"jsx": "react", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the issue?
Done
QA
Issue / Card
Fixes canonical-web-and-design/commercial-squad#85.