-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(v2): fix plugin-ideal-image breaking website (exports not defined)
- Loading branch information
Showing
7 changed files
with
26 additions
and
42 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
packages/docusaurus-plugin-ideal-image/@types/react-ideal-image.d.ts
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
packages/docusaurus-plugin-ideal-image/copyUntypedFiles.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
const path = require('path'); | ||
const fs = require('fs-extra'); | ||
|
||
/** | ||
* Copy all untyped and static assets files to lib. | ||
*/ | ||
const srcDir = path.resolve(__dirname, 'src'); | ||
const libDir = path.resolve(__dirname, 'lib'); | ||
fs.copySync(srcDir, libDir, { | ||
filter(filepath) { | ||
return !/__tests__/.test(filepath) && !/\.ts$/.test(filepath); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters