Skip to content

Commit bcd1d52

Browse files
committed
chore: update version to 5.0.2; include @imagekit/javascript in Rollup external config
1 parent 3236e59 commit bcd1d52

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 5.0.2
2+
3+
Include `@imagekit/javascript` in external in Rollup config to prevent bundling it with the package, allowing users to be able to fetch the latest version of the SDK without needing to update the package. This also reduces the bundle size of the package and allows users to manage the SDK version separately.
4+
15
## 5.0.1
26

37
Fix `src` when `responsive:false` is set.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@imagekit/react",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "React SDK for ImageKit.io which implements client-side upload and URL generation for use inside a react application.",
55
"scripts": {
66
"build:js": "rollup -c",

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default [
2525
// Main entry build (client and shared code)
2626
{
2727
input: "src/index.ts",
28-
external: ["react"],
28+
external: ["react", "@imagekit/javascript"],
2929
output: [
3030
{ file: pkg.main, format: "cjs", sourcemap: true },
3131
{ file: pkg.module, format: "es", sourcemap: true },

0 commit comments

Comments
 (0)