mirror of
https://github.com/facebook/docusaurus.git
synced 2026-06-27 11:11:24 -04:00
18 lines
482 B
TypeScript
Vendored
18 lines
482 B
TypeScript
Vendored
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import {createRequire} from 'node:module';
|
|
|
|
const require = createRequire(import.meta.url);
|
|
|
|
// Only created to fix test: website/src/data/__tests__/user.test.ts
|
|
for (const ext of ['.png']) {
|
|
require.extensions[ext] = (module: any, _filename: string) => {
|
|
module.exports = null;
|
|
};
|
|
}
|