Skip to content

Commit 2eefe20

Browse files
authored
fix!(loader): move blurhash to peerDeps (#38)
1 parent b88afb5 commit 2eefe20

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
A blurhash loader module for webpack.
44

5-
[example](https://blurhash-loader-example.vercel.app/)
5+
[Demo](https://blurhash-loader-example.vercel.app/) ([source](example/))
66

77
## Install
88

99
```console
10-
$ npm install -D blurhash-loader
10+
$ npm install -D blurhash-loader blurhash
1111
```
1212

1313
or
1414

1515
```console
16-
$ yarn add -D blurhash-loader
16+
$ yarn add -D blurhash-loader blurhash
1717
```
1818

1919
## Usage

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"postinstall": "cd .. && yarn install --frozen-lockfile && yarn build"
1010
},
1111
"dependencies": {
12+
"blurhash": "^1.1.3",
1213
"next": "10.0.0",
1314
"react": "17.0.1",
1415
"react-blurhash": "^0.1.3",

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"url": "https://github.com/inabagumi/blurhash-loader/issues"
1010
},
1111
"dependencies": {
12-
"blurhash": "^1.1.3",
1312
"loader-utils": "^2.0.0",
1413
"sharp": "^0.26.2"
1514
},
@@ -20,6 +19,7 @@
2019
"@types/loader-utils": "^2.0.1",
2120
"@types/sharp": "^0.26.0",
2221
"@types/webpack": "^4.41.24",
22+
"blurhash": "^1.1.3",
2323
"conventional-github-releaser": "^3.1.5",
2424
"eslint": "^7.12.1",
2525
"microbundle": "^0.12.4",
@@ -34,6 +34,9 @@
3434
],
3535
"license": "MIT",
3636
"name": "blurhash-loader",
37+
"peerDependencies": {
38+
"blurhash": "^1.0.0"
39+
},
3740
"repository": {
3841
"type": "git",
3942
"url": "https://github.com/inabagumi/blurhash-loader.git"

0 commit comments

Comments
 (0)