Skip to content

Commit

Permalink
Storybook fix (#632)
Browse files Browse the repository at this point in the history
* UI enhancements

* Fixed reanimated and storybook

---------

Co-authored-by: Mohit <mohit@Mohits-MacBook-Pro-3.local>
  • Loading branch information
mohitharshan123 and Mohit authored Dec 22, 2023
1 parent 4a21730 commit b4b054b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ module.exports = api => {
];
if (babelEnv === "production") {
plugins.push("transform-remove-console");
}

if (babelEnv === "development") {
plugins.push('react-native-reanimated/plugin')
}

return {
presets: ["module:metro-react-native-babel-preset"],
plugins,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"storybook-web": "yarn prestart && ./node_modules/@storybook/react/bin/index.js",
"get-stories": "sb-rn-get-stories --config-path=./.storybook",
"preweb": "yarn get-stories",
"storybook": "yarn prestart && webpack serve --mode=development --config webpack.config.js",
"storybook": "yarn prestart && BABEL_ENV=production webpack serve --mode=production --config webpack.config.js",
"prepare": "husky install",
"yalc:publish": "yarn build && rm -rf ~/.yalc/packages && yalc publish --private",
"postinstall": "patch-package"
Expand Down
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,9 @@ module.exports = {
devServer: {
open: true,
},
performance: {
hints: false,
maxEntrypointSize: 512000,
maxAssetSize: 512000
}
};

0 comments on commit b4b054b

Please sign in to comment.