Skip to content

Commit a3feb3f

Browse files
authored
Remove URL plugin and fallback from webpack config (#1098)
* remove URL plugin and fallback from webpack config * add missing dev deps * remove unnecessary @ts-ignore
1 parent 500ca3d commit a3feb3f

File tree

4 files changed

+962
-942
lines changed

4 files changed

+962
-942
lines changed

packages/docusaurus-theme-openapi-docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"devDependencies": {
3131
"@docusaurus/theme-common": "^3.5.0",
32+
"@docusaurus/theme-classic": "^3.5.0",
3233
"@docusaurus/types": "^3.5.0",
3334
"@types/crypto-js": "^4.1.0",
3435
"@types/file-saver": "^2.0.5",

packages/docusaurus-theme-openapi-docs/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ export default function docusaurusThemeOpenAPI(): Plugin<void> {
4242
resolve: {
4343
fallback: {
4444
buffer: require.resolve("buffer/"),
45-
url: require.resolve("url/"),
4645
},
4746
},
4847
plugins: [
4948
new utils.currentBundler.instance.ProvidePlugin({
5049
process: require.resolve("process/browser"),
5150
Buffer: ["buffer", "Buffer"],
52-
URL: ["url", "URL"],
5351
}),
5452
],
5553
module: {
@@ -73,14 +71,12 @@ export default function docusaurusThemeOpenAPI(): Plugin<void> {
7371
resolve: {
7472
fallback: {
7573
buffer: require.resolve("buffer/"),
76-
url: require.resolve("url/"),
7774
},
7875
},
7976
plugins: [
8077
new utils.currentBundler.instance.ProvidePlugin({
8178
process: require.resolve("process/browser"),
8279
Buffer: ["buffer", "Buffer"],
83-
URL: ["url", "URL"],
8480
}),
8581
],
8682
};

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Response/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import React from "react";
99

10-
// @ts-ignore
1110
import { useDoc } from "@docusaurus/plugin-content-docs/client";
1211
import { usePrismTheme } from "@docusaurus/theme-common";
1312
import ApiCodeBlock from "@theme/ApiExplorer/ApiCodeBlock";

0 commit comments

Comments
 (0)