Skip to content

Commit

Permalink
fix(core): fix native bindings import
Browse files Browse the repository at this point in the history
  • Loading branch information
nfroidure committed Jul 20, 2024
1 parent 4650b51 commit 420930f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (
env.TTF2WOFF2_VERSION?.toLowerCase() === 'native'
) {
try {
ttf2woff2 = (await import('bindings'))('addon.node').convert;
ttf2woff2 = (await import('bindings')).default('addon.node').convert;
doDebug('✅ Using native version.');
} catch (err) {
doDebug(
Expand Down

0 comments on commit 420930f

Please sign in to comment.