Skip to content

Commit

Permalink
PREAPPS-8189: Added preact-markup to shim
Browse files Browse the repository at this point in the history
  • Loading branch information
Lave Gupta authored and silentsakky committed Jan 16, 2025
1 parent 905cde6 commit ec5d459
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/shims/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ exports.SHIMMED_MODULES = [
'preact-pwa-install',
'preact-i18n',
'preact-render-to-string',
'preact-markup',
['@zimbra-client/util', 'redux', 'contacts'], // Multiple shim files under one alias (@zimbra/util, @zimbra/util/redux, @zimbra/util/contacts)
'@zimbra-client/blocks',
'@zimbra-client/components',
Expand Down
12 changes: 12 additions & 0 deletions src/shims/preact-markup/index.js
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'];

0 comments on commit ec5d459

Please sign in to comment.