Jack Works
c29710a570
fix: useImperativeMethods to useImperativeHandle ( #20194 )
2020-11-08 19:59:53 +00:00
Kevin Weber
b7d18c4daf
Support Babel's envName option in React Refresh plugin ( #19009 )
...
* Fix envName bug
* Replace getEnv with env
2020-09-01 13:50:54 +01:00
Mateusz Burzyński
a5fed98a96
Register more node types that are used later as JSXIdentifiers ( #19514 )
2020-08-06 16:37:32 +01:00
Ricky
30b47103d4
Fix spelling errors and typos ( #19138 )
2020-06-15 19:59:44 -04:00
yjimk
0aa4cc544c
Resolve an edge case where ref.node can be falsy ( #18984 )
...
Co-authored-by: Jimmy Cann <jimmy.cann@ironstar.io >
2020-05-23 14:25:24 +01:00
Sophie Alpert
21670cf4be
[react-refresh/babel] Always insert registrations after var ( #18794 )
...
Previously, we transformed
```
let Foo = styled.div``;
```
to
```
let Foo = _c1 = styled.div``;
```
and then babel-plugin-styled-components would infer `_c1` as the display name. Widen the existing case that applies to function expressions to apply to any type of variable declaration.
2020-05-01 16:01:11 +01:00
Sebastian Markbåge
3e94bce765
Enable prefer-const lint rules ( #18451 )
...
* Enable prefer-const rule
Stylistically I don't like this but Closure Compiler takes advantage of
this information.
* Auto-fix lints
* Manually fix the remaining callsites
2020-04-01 12:35:52 -07:00
Vasilii Cuhar
f4cc45ce96
[Fresh] Add options to configure RefreshSig and RefreshReg identifiers ( #17340 )
2019-11-12 14:16:23 +00:00
Dan Abramov
ba6bb0fccf
[Fresh] Hash signatures ( #16738 )
2019-09-10 20:28:13 +01:00
Dan Abramov
b260bef398
[Fresh] Add skipEnvCheck option to Babel plugin ( #16688 )
2019-09-06 20:30:16 +01:00
Dan Abramov
9044bb0fa3
[Fresh] Fix a crash with implicit arrow return ( #16687 )
2019-09-06 19:58:07 +01:00
lunaruan
89bbffed6e
Cleanup Babel PR (ReactFreshPlugin) ( #16340 )
...
* fix babel 7 issues
* fix babel 7 issues
2019-08-13 21:18:40 +01:00
Min ho Kim
2a0f6390ed
Fix typos ( #16076 )
2019-07-08 11:51:29 +01:00
Anton Korzunov
a865e4a642
Clone a custom hook node before use ( #16019 )
2019-07-02 17:54:10 +01:00
Dan Abramov
d271df5c99
Use function expression for custom Hook signature argument ( #15956 )
2019-06-22 11:54:22 +01:00
Dan Abramov
7a4c3e3b73
Make global names more obscure ( #15941 )
2019-06-20 20:20:09 +01:00
Dan Abramov
3d0af2aea8
Don't consider require-like calls to be likely HOCs ( #15940 )
2019-06-20 16:13:18 +01:00
Dan Abramov
d4f384d25b
[Fresh] Throw in prod and change annotation ( #15939 )
...
* Disable React Refresh Babel transform in prod
* Throw early if React Refresh runtime is imported in production
* @hot reset -> @refresh reset
2019-06-20 14:29:00 +01:00
Dan Abramov
f0156766dc
[Fresh] react-fresh => react-refresh ( #15888 )
2019-06-15 19:36:46 +01:00