question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Define custom pragma as global setting?

See original GitHub issue

Emotion 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:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
jgouxcommented, Nov 24, 2018

As of today there is still no easy solution to this issue.

1reaction
localjocommented, Mar 27, 2019

Something like https://github.com/sharegate/craco/ might enable the custom config you want.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found