mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
feat(v2): allow for TypeScript pages and components (#2221)
This commit is contained in:
parent
f2137bb872
commit
5cb3309790
3 changed files with 4 additions and 3 deletions
|
@ -60,7 +60,7 @@ export function objectWithKeySorted(obj: Object) {
|
|||
.value();
|
||||
}
|
||||
|
||||
const indexRE = /(^|.*\/)index\.(md|js)$/i;
|
||||
const indexRE = /(^|.*\/)index\.(md|js|jsx|ts|tsx)$/i;
|
||||
const extRE = /\.(md|js)$/;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue