Skip to content

Commit

Permalink
build: bundle iife and umd with rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
prazdevs committed Nov 8, 2024
1 parent 2bd0f25 commit fcad302
Show file tree
Hide file tree
Showing 3 changed files with 561 additions and 198 deletions.
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@
"dist"
],
"scripts": {
"build": "pnpm build:plugin && pnpm build:module",
"build:plugin": "tsup src/index.ts --dts --format esm,cjs,iife",
"build": "pnpm build:plugin && pnpm build:umd && pnpm build:module",
"build:plugin": "tsup src/index.ts --dts --format esm,cjs",
"build:module": "nuxt-module-build build --outDir dist/nuxt",
"build:umd": "rollup -c rollup.config.js",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
Expand Down Expand Up @@ -95,22 +96,25 @@
"@nuxt/schema": "^3.13.2",
"@nuxt/test-utils": "^3.14.4",
"@pinia/nuxt": "^0.6.1",
"@rollup/plugin-node-resolve": "^15.3.0",
"@shikijs/vitepress-twoslash": "^1.22.2",
"@types/node": "^22.8.7",
"changelogen": "^0.5.7",
"esbuild": "^0.24.0",
"eslint": "~9.14.0",
"eslint-plugin-format": "^0.1.2",
"lint-staged": "^15.2.10",
"nuxt": "^3.13.2",
"pinia": "^2.2.5",
"pinia-plugin-persistedstate": "link:",
"publint": "^0.2.12",
"rollup": "^4.24.4",
"rollup-plugin-esbuild": "^6.1.1",
"simple-git-hooks": "^2.11.1",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
"vitepress": "^1.4.5",
"vitepress-plugin-group-icons": "^1.3.0",
"vitest": "^2.1.4",
"vue": "^3.5.12",
"vue-tsc": "^2.1.10"
},
Expand Down
Loading

0 comments on commit fcad302

Please sign in to comment.