Skip to content

Commit 376fa28

Browse files
add link with explanation to webpackMode eager
1 parent b44ddce commit 376fa28

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/libs/fileDownload/heicConverter

src/libs/fileDownload/heicConverter/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ type HeicConverter = {
77

88
const getHeicConverter = () => {
99
// Use the CSP variant to ensure the library is loaded in a secure context. See https://github.com/hoppergee/heic-to?tab=readme-ov-file#cotent-security-policy
10+
// Use webpackMode: "eager" to ensure the library is loaded immediately without evaluating the code. See https://github.com/Expensify/App/pull/68727#issuecomment-3227196372
1011
// @ts-expect-error - heic-to/csp is not correctly typed but exists
1112
return import(/* webpackMode: "eager" */ 'heic-to/csp').then(({heicTo, isHeic}: HeicConverter) => ({heicTo, isHeic}));
1213
};

0 commit comments

Comments
 (0)