fix(docs): Upgrade docusaurus, webpack/loaders.

Upgrade to the new Docusaurus 2 beta release, which also required
upgrades to newer Webpack@5, and some API fixes for TOC changes.
This commit is contained in:
Peter Johanson
2021-06-09 01:50:50 +00:00
committed by Pete Johanson
parent e8b42221cf
commit 7323f78a37
10 changed files with 14098 additions and 19039 deletions

View File

@@ -29,8 +29,11 @@ module.exports = function () {
return {
// web-tree-sitter tries to import "fs", which can be ignored.
// https://github.com/tree-sitter/tree-sitter/issues/466
node: {
fs: "empty",
resolve: {
fallback: {
fs: false,
path: false,
},
},
module: { rules },
};