Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Oct 9, 2023
1 parent 0b1c66d commit f4ef7f7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions packages/pdfkit/src/mixins/attachments.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import fs from 'fs';
import * as CryptoJS from 'crypto-js/core';
import MD5 from 'crypto-js/md5';
// This file is ran directly with Node - needs to have .js extension
// eslint-disable-next-line import/extensions
import * as CryptoJS from 'crypto-js/core.js';
// This file is ran directly with Node - needs to have .js extension
// eslint-disable-next-line import/extensions
import MD5 from 'crypto-js/md5.js';

export default {
/**
Expand Down
4 changes: 3 additions & 1 deletion packages/stylesheet/src/expand/boxModel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* eslint-disable no-plusplus */
import parse from 'postcss-value-parser/lib/parse';
import parseUnit from 'postcss-value-parser/lib/unit';
// This file is ran directly with Node - needs to have .js extension
// eslint-disable-next-line import/extensions
import parseUnit from 'postcss-value-parser/lib/unit.js';

const BOX_MODEL_UNITS = 'px,in,mm,cm,pt,%,vw,vh';

Expand Down
4 changes: 3 additions & 1 deletion packages/textkit/src/engines/wordHyphenation/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import hyphen from 'hyphen';
import pattern from 'hyphen/patterns/en-us';
// This file is ran directly with Node - needs to have .js extension
// eslint-disable-next-line import/extensions
import pattern from 'hyphen/patterns/en-us.js';
import { isNil } from '@react-pdf/fns';

const SOFT_HYPHEN = '\u00ad';
Expand Down

0 comments on commit f4ef7f7

Please sign in to comment.