-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(v2): Support swizzling TypeScript components
- Loading branch information
1 parent
1d8cc4b
commit 6d495db
Showing
12 changed files
with
145 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
module.exports = { | ||
presets: [['@babel/preset-typescript', { isTSX: true, allExtensions: true }]], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/// <reference types="@docusaurus/module-type-aliases" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
// This file is not used in compilation. It is here just for a nice editor experience. | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"lib": ["DOM"], | ||
"module": "esnext", | ||
"noEmit": true, | ||
"noImplicitAny": false, | ||
"jsx": "react", | ||
"baseUrl": "src" | ||
}, | ||
"include": ["src/"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,22 @@ | |
# yarn lockfile v1 | ||
|
||
|
||
"@babel/cli@^7.8.4": | ||
version "7.8.4" | ||
resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.8.4.tgz#505fb053721a98777b2b175323ea4f090b7d3c1c" | ||
integrity sha512-XXLgAm6LBbaNxaGhMAznXXaxtCWfuv6PIDJ9Alsy9JYTOh+j2jJz+L/162kkfU1j/pTSxK1xGmlwI4pdIMkoag== | ||
dependencies: | ||
commander "^4.0.1" | ||
convert-source-map "^1.1.0" | ||
fs-readdir-recursive "^1.1.0" | ||
glob "^7.0.0" | ||
lodash "^4.17.13" | ||
make-dir "^2.1.0" | ||
slash "^2.0.0" | ||
source-map "^0.5.0" | ||
optionalDependencies: | ||
chokidar "^2.1.8" | ||
|
||
"@babel/[email protected]": | ||
version "7.5.5" | ||
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49531219699b988f669a8f9d" | ||
|
@@ -2798,6 +2814,13 @@ | |
"@types/unist" "*" | ||
"@types/vfile-message" "*" | ||
|
||
"@types/walk@^2.3.0": | ||
version "2.3.0" | ||
resolved "https://registry.yarnpkg.com/@types/walk/-/walk-2.3.0.tgz#1bfeb19f6fab63a1a39f929c0f2b4c02134468f8" | ||
integrity sha512-I1w1RJW5kowe7JnekvVTSD/Lek8WK0N/Fz80n9Chnb5jYo+mne4tDthgCAV/Fo1tym9m8W6stfsJQvjRMpOHgw== | ||
dependencies: | ||
"@types/node" "*" | ||
|
||
"@types/webpack-dev-server@*", "@types/webpack-dev-server@^3.9.0": | ||
version "3.10.1" | ||
resolved "https://registry.yarnpkg.com/@types/webpack-dev-server/-/webpack-dev-server-3.10.1.tgz#93b7133cc9dab1ca1b76659f5ef8b763ad54c28a" | ||
|
@@ -5143,7 +5166,7 @@ conventional-recommended-bump@^5.0.0: | |
meow "^4.0.0" | ||
q "^1.5.1" | ||
|
||
convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: | ||
convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: | ||
version "1.7.0" | ||
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" | ||
integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== | ||
|
@@ -7337,6 +7360,11 @@ foreach@^2.0.5: | |
resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" | ||
integrity sha1-C+4AUBiusmDQo6865ljdATbsG5k= | ||
|
||
foreachasync@^3.0.0: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/foreachasync/-/foreachasync-3.0.0.tgz#5502987dc8714be3392097f32e0071c9dee07cf6" | ||
integrity sha1-VQKYfchxS+M5IJfzLgBxyd7gfPY= | ||
|
||
forever-agent@~0.6.1: | ||
version "0.6.1" | ||
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" | ||
|
@@ -7449,6 +7477,11 @@ fs-minipass@^2.0.0: | |
dependencies: | ||
minipass "^3.0.0" | ||
|
||
fs-readdir-recursive@^1.1.0: | ||
version "1.1.0" | ||
resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27" | ||
integrity sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA== | ||
|
||
fs-write-stream-atomic@^1.0.8: | ||
version "1.0.10" | ||
resolved "https://registry.yarnpkg.com/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz#b47df53493ef911df75731e70a9ded0189db40c9" | ||
|
@@ -17154,6 +17187,13 @@ wait-file@^1.0.5: | |
fs-extra "^8.1.0" | ||
rx "^4.1.0" | ||
|
||
walk@^2.3.14: | ||
version "2.3.14" | ||
resolved "https://registry.yarnpkg.com/walk/-/walk-2.3.14.tgz#60ec8631cfd23276ae1e7363ce11d626452e1ef3" | ||
integrity sha512-5skcWAUmySj6hkBdH6B6+3ddMjVQYH5Qy9QGbPmN8kVmLteXk+yVXg+yfk1nbX30EYakahLrr8iPcCxJQSCBeg== | ||
dependencies: | ||
foreachasync "^3.0.0" | ||
|
||
walker@^1.0.7, walker@~1.0.5: | ||
version "1.0.7" | ||
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" | ||
|