Skip to content

Commit 4447dc0

Browse files
committed
chore: mark cropperjs as peerDep and should not bundle
1 parent a23525c commit 4447dc0

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
"release": "pnpm dlx changelogen@latest --release --push --publish",
3232
"prerelease": "pnpm run build:lib"
3333
},
34+
"peerDependencies": {
35+
"cropperjs": "next"
36+
},
37+
"peerDependenciesMeta": {
38+
"cropperjs": {
39+
"optional": false
40+
}
41+
},
3442
"devDependencies": {
3543
"@antfu/eslint-config": "^2.24.1",
3644
"@iconify-json/tabler": "^1.1.119",
@@ -42,7 +50,6 @@
4250
"@vue/tsconfig": "^0.5.1",
4351
"@vueuse/core": "^10.11.0",
4452
"clean-css": "^5.3.3",
45-
"cropperjs": "next",
4653
"eslint": "^9.8.0",
4754
"highlight.js": "^11.10.0",
4855
"sass": "^1.77.8",

pnpm-lock.yaml

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

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default defineConfig(({ command: _command, mode }) => {
5050
cssCodeSplit: false,
5151
sourcemap: true,
5252
rollupOptions: {
53-
external: ['vue'],
53+
external: ['vue', 'cropperjs'],
5454
output: [
5555
{
5656
format: 'es',

0 commit comments

Comments
 (0)