Skip to content

Commit

Permalink
feat: add minified fuels distribution (#2762)
Browse files Browse the repository at this point in the history
* chore: added uglifyjs

* chore: added minification build step

* chore: changeset

* chore: update changeset

---------

Co-authored-by: Daniel Bate <[email protected]>
Co-authored-by: Chad Nehemiah <[email protected]>
  • Loading branch information
3 people committed Jul 16, 2024
1 parent 766faed commit 9c20eb9
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-paws-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels": patch
---

feat: add minified `fuels` distribution
6 changes: 5 additions & 1 deletion packages/fuels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
"dist"
],
"scripts": {
"build": "tsup && pnpm vite build",
"build": "run-s build:package build:browser build:minified",
"build:package": "tsup",
"build:browser": "pnpm vite build",
"build:minified": "pnpm uglifyjs --compress --mangle --output dist/browser.min.mjs -- dist/browser.mjs",
"postbuild": "tsc --emitDeclarationOnly -p tsconfig.dts.json",
"prepublishOnly": "cp ../../README.md ./README.md"
},
Expand Down Expand Up @@ -84,6 +87,7 @@
"lodash.camelcase": "^4.3.0",
"portfinder": "^1.0.32",
"toml": "^3.0.0",
"uglify-js": "^3.18.0",
"yup": "^1.4.0"
},
"devDependencies": {
Expand Down
42 changes: 26 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9c20eb9

Please sign in to comment.