File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
packages/docusaurus-theme-openapi-docs/src Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,15 @@ export default function docusaurusThemeOpenAPI(): Plugin<void> {
37
37
) : Configuration {
38
38
const { getStyleLoaders, currentBundler } = utils ;
39
39
40
- const fakerAlias = { "@faker-js/faker" : false } as const ;
40
+ const fakerAlias = {
41
+ "@faker-js/faker" : path . resolve (
42
+ __dirname ,
43
+ ".." ,
44
+ "src" ,
45
+ "shims" ,
46
+ "faker.ts"
47
+ ) ,
48
+ } ;
41
49
42
50
const ignoreFaker = new currentBundler . instance . IgnorePlugin ( {
43
51
resourceRegExp : / ^ @ f a k e r - j s \/ f a k e r $ / ,
Original file line number Diff line number Diff line change
1
+ /* ============================================================================
2
+ * Copyright (c) Palo Alto Networks
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ * ========================================================================== */
7
+
8
+ const stub = new Proxy (
9
+ { } ,
10
+ {
11
+ get : ( ) => ( ) => "" ,
12
+ }
13
+ ) ;
14
+
15
+ export = stub ;
You can’t perform that action at this time.
0 commit comments