-
Hello,
Is it possible to implement as babel macro? (https://github.com/kentcdodds/babel-plugin-macros)
This way, it would work out-of-the-box with Expo, with no configuration necessary. This is ho…
-
-
This is a perfect use case for a babel-plugin-macros macro. Anyone interested in doing that?
-
# 如何实现一个 TypeScript 的宏
这只是一篇记录自己折腾经历的日记。对大家可能没什么帮助。
## 想法
Babel 是一个优秀的玩具,我们可以在上面做很多有趣的事情,于是我们有了非常多的 Babel 的 plugin,后来大家黑魔法玩多了,就出现了小伙伴说,我不想配置那么麻烦,就有小伙伴开始写了一个 [babel-plugin-macros](https://gith…
-
When using with CRA, its possible to see name of component inside css classes, but I cannot figure out how to make a nice developing/debugging experience when using with Vite.js. Is there any advices …
-
I have been trying to implement support for optional peer dependencies using a pattern like
```js
if (macroCondition(dependencySatisfies('fantastic-but-optional-package', '*'))) {
// use the op…
-
Hi,
Using babel macros would be handy for this: it allows babel to generate require statements you need at transpilation time. The advantage would be to avoid running the cli everytime you want to …
-
### Current Behavior
For example: Using `styled-components/macros` breaks the test. Using `styled-components` does not.
### Suggested solution(s)
https://kulshekhar.github.io/ts-jest/user/con…
-
Howdy! Spent the last few hours trying to figure out if I was doing something stupid here, but just hitting walls and Google is letting me down.
I'm trying to use this without the macros by using t…
-
It would be nice to have a babel macro that automatically runs the babel plugin to remove the runtime. That way, this project would work out of the box with "zero" config tools like create-react-app. …