@jhseo-dev/codebase-indexer
Version:
39 lines (30 loc) • 883 B
Markdown
using tree-sitter
- Python
- JavaScript
- TypeScript
- TSX
```ts
// next.config.ts
const nextConfig = {
webpack: (config, { isServer }) => {
if (isServer) {
config.externals.push(
"tree-sitter",
"tree-sitter-javascript",
"tree-sitter-typescript",
"tree-sitter-python"
)
}
return config
},
}
```
- python: https://github.com/tree-sitter/tree-sitter-python/blob/master/src/node-types.json
- javascript: https://github.com/tree-sitter/tree-sitter-javascript/blob/master/src/node-types.json
- typescript: https://github.com/tree-sitter/tree-sitter-typescript/blob/master/typescript/src/node-types.json
- tsx: https://github.com/tree-sitter/tree-sitter-typescript/blob/master/tsx/src/node-types.json
A codebase indexer