From 7323f78a37467e7144eb6414ef2296de050a45fd Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Wed, 9 Jun 2021 01:50:50 +0000 Subject: 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. --- docs/src/docusaurus-tree-sitter-plugin/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'docs/src') diff --git a/docs/src/docusaurus-tree-sitter-plugin/index.js b/docs/src/docusaurus-tree-sitter-plugin/index.js index 7803a9e..da9809d 100644 --- a/docs/src/docusaurus-tree-sitter-plugin/index.js +++ b/docs/src/docusaurus-tree-sitter-plugin/index.js @@ -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 }, }; -- cgit v1.2.3