Skip to content

Commit

Permalink
chore(deps): update dependency rollup to v3 [security] (#336)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Huyen Nguyen <[email protected]>
  • Loading branch information
renovate[bot] and huyenltnguyen authored Sep 25, 2024
1 parent 3c1c1ac commit 486aa06
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 32 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"env": {
"browser": true,
"es2021": true,
"jest/globals": true
"jest/globals": true,
"node": true
},
"extends": [
"eslint:recommended",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"postcss-import": "14.1.0",
"postcss-loader": "8.1.1",
"prettier": "3.3.3",
"rollup": "2.79.1",
"rollup": "3.29.5",
"rollup-plugin-bundle-size": "1.0.3",
"rollup-plugin-postcss": "4.0.2",
"storybook": "8.3.3",
Expand Down
54 changes: 27 additions & 27 deletions pnpm-lock.yaml

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

7 changes: 4 additions & 3 deletions rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import terser from "@rollup/plugin-terser";
import resolve from "@rollup/plugin-node-resolve";
import bundleSize from "rollup-plugin-bundle-size";

import { peerDependencies } from "./package.json";
// See https://rollupjs.org/command-line-interface/#importing-package-json
import pkgJson from "./package.json" assert { type: "json" };

const production = process.env.NODE_ENV !== "development";

Expand All @@ -24,7 +25,7 @@ const config = {
sourcemap: true,
},
],
external: Object.keys(peerDependencies),
external: Object.keys(pkgJson.peerDependencies),
plugins: [
postcss(),
resolve(),
Expand All @@ -35,7 +36,7 @@ const config = {
include: ["src/**/*"],
exclude: ["**/*.test.*", "**/*.stories.*"],
}),
babel({ babelHelpers: "bundled" }),
babel.babel({ babelHelpers: "bundled" }),
commonjs(),
production && terser(),
bundleSize(),
Expand Down

0 comments on commit 486aa06

Please sign in to comment.