Define custom pragma as global setting?
See original GitHub issueEmotion 10 is going to provide a custom createElement
function and to work, the app needs to use it as custom pragma.
https://github.com/emotion-js/emotion/issues/637
Is there any way to override the default React createElement
in a global manner to avoid to define the custom pragma on every single file?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:18 (10 by maintainers)
Top Results From Across the Web
40.3 Custom Pragmas - DVT Eclipse IDE
To define pragmas for a project, Right click on the project in the Project Explorer view and go to Properties > DVT >...
Read more >Can I add custom #pragma rule? - c++ - Stack Overflow
It is processed by preprocessor. When you have the source of the compiler then you can add anything you want.
Read more >Pragma directives and the __pragma and _Pragma keywords
Describes the pragma directives available in Microsoft Visual C and C++ (MSVC)
Read more >Pragmas Accepted by GCC — gcc 6 documentation - Fedora
This pragma allows you to set global optimization options for functions defined later in the source file. One or more strings can be...
Read more >What is JSX pragma? - Gatsby
Theme UI uses custom JSX pragma to make JSX theme-aware. ... come with tooling already set up to support this conversion (usually Babel)....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As of today there is still no easy solution to this issue.
Something like https://github.com/sharegate/craco/ might enable the custom config you want.