Skip to content

Commit

Permalink
Fix browser build (#1184)
Browse files Browse the repository at this point in the history
* upgrade mkdrip

* fix mkdirp being included in bundle
  • Loading branch information
hipstersmoothie authored Feb 6, 2023
1 parent 4f906c0 commit 1a4f22e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/jimp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
},
"devDependencies": {
"@jimp/test-utils": "link:../test-utils",
"empty-module": "^0.0.2",
"express": "^4.17.1",
"path-browserify": "^1.0.1",
"webpack": "^5.75.0",
Expand Down
1 change: 1 addition & 0 deletions packages/jimp/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default {
resolve: {
alias: {
pngjs: "pngjs/browser",
mkdirp: "empty-module",
},
fallback: {
path: require.resolve("path-browserify"),
Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@
exif-parser "^0.1.12"
file-type "^16.5.4"
isomorphic-fetch "^3.0.0"
mkdirp "^0.5.1"
mkdirp "^2.1.3"
pixelmatch "^4.0.2"
tinycolor2 "^1.4.1"

Expand Down Expand Up @@ -4960,6 +4960,11 @@ emoji-regex@^8.0.0:
resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==

empty-module@^0.0.2:
version "0.0.2"
resolved "https://registry.npmjs.org/empty-module/-/empty-module-0.0.2.tgz#13b4dd8d4afeddd35e50c18dcd788c51087f1545"
integrity sha512-NFzPF5kG18UwYoRaXIylf8mpFEGOePZmKnbv3WUsEFxPe0w8NXPovJfm8t+tYoKwYmyRdQ2bZUizl/EiElJ7+g==

encodeurl@~1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
Expand Down

0 comments on commit 1a4f22e

Please sign in to comment.