Skip to content

Commit

Permalink
Fix issue with missing crypto package
Browse files Browse the repository at this point in the history
  • Loading branch information
pkosiec committed Feb 10, 2022
1 parent 9e93c65 commit 7d6b4e7
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 8 deletions.
34 changes: 28 additions & 6 deletions package-lock.json

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

1 change: 1 addition & 0 deletions react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-replace": "^3.0.1",
"@rollup/plugin-typescript": "^8.3.0",
"@storybook/addon-actions": "^6.4.18",
"@storybook/addon-essentials": "^6.4.18",
Expand Down
16 changes: 14 additions & 2 deletions react-components/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import resolve from "@rollup/plugin-node-resolve";
import replace from '@rollup/plugin-replace';
import commonJS from "@rollup/plugin-commonjs";
import postcss from "rollup-plugin-postcss";
import typescript from "@rollup/plugin-typescript";
Expand Down Expand Up @@ -30,11 +31,22 @@ const config = [
},
],
plugins: [
resolve(),
resolve({
browser: true,
}),
replace({
preventAssignment: true,
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
}),
commonJS(),
typescript({
tsconfig: "./tsconfig.json",
exclude: ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.mdx", "**/*.stories.ts"]
exclude: [
"**/*.test.ts",
"**/*.test.tsx",
"**/*.stories.mdx",
"**/*.stories.ts",
],
}),
postcss(),
json(),
Expand Down

0 comments on commit 7d6b4e7

Please sign in to comment.