-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESM build needs a special empty file that exports an object to prevent property access of "undefined"
- Loading branch information
1 parent
605bdcb
commit 474a10b
Showing
2 changed files
with
24 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// This file is inserted as a shim for modules which we do not want to include into the distro. | ||
// This replacement is done in the "alias" plugin of the rollup config. | ||
// Use a ES dedicated file as Rollup assigns an object in the output | ||
// For example: "var KeySystemFormats = emptyEs.KeySystemFormats;" | ||
module.exports = {}; |