-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PREAPPS-8189: Added preact-markup to shim
- Loading branch information
1 parent
905cde6
commit ec5d459
Showing
2 changed files
with
13 additions
and
0 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,12 @@ | ||
/** This file is an auto-generated shim, aliased in for "preact-markup" in the webpack config. | ||
* When components import 'preact-markup', we want to give them back the copy | ||
* Zimbra passed down when it called the factory provided to zimlet(). | ||
*/ | ||
|
||
/* eslint-disable camelcase, dot-notation */ | ||
import { warnOnMissingExport } from '../'; | ||
const wrap = warnOnMissingExport.bind(null, global.shims['preact-markup'], 'preact-markup'); | ||
|
||
export const setReviver = wrap('setReviver'); | ||
|
||
export default global.shims['preact-markup']; |