Skip to content

Commit

Permalink
merge: rollup-terser 적용하여 번들 사이즈 줄이기 처리 (#4)
Browse files Browse the repository at this point in the history
merge: rollup-terser 적용하여 번들 사이즈 줄이기 처리 (#4)
  • Loading branch information
d0422 authored May 10, 2024
2 parents 253c067 + 951ab62 commit bc2618b
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 3 deletions.
95 changes: 93 additions & 2 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rapiders/react-hooks",
"version": "1.2.0",
"version": "1.2.1",
"description": "react hooks for fast development",
"main": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
Expand Down Expand Up @@ -37,6 +37,7 @@
"@chromatic-com/storybook": "^1.3.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@storybook/addon-essentials": "^8.0.8",
"@storybook/addon-interactions": "^8.0.8",
"@storybook/addon-links": "^8.0.8",
Expand Down
3 changes: 3 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import babel from '@rollup/plugin-babel';
import { dts } from 'rollup-plugin-dts';
import resolve from '@rollup/plugin-node-resolve';
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
import terser from '@rollup/plugin-terser';

const extensions = ['.js', '.jsx', '.ts', '.tsx'];
export default [
{
Expand All @@ -24,6 +26,7 @@ export default [
resolve({
extensions,
}),
terser(),
],
},
{
Expand Down

0 comments on commit bc2618b

Please sign in to comment.