Skip to content

Commit

Permalink
Upgrade react-live
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding committed Sep 9, 2024
1 parent 4964f00 commit 61af0cc
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 208 deletions.
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"hoist-non-react-statics": "^3.3.2",
"lodash-es": "^4.17.21",
"prism-react-renderer": "^1.1.1",
"react-live": "^2.2.3",
"react-live": "^4.0.0",
"react-markdown": "^9.0.0",
"react-responsive-carousel": "3.2.10",
"react-table": "^7.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/open-api-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"clsx": "^2.0.0",
"deepmerge": "^2.0.1",
"lodash-es": "^4.17.21",
"react-live": "^2.2.3",
"react-live": "^4.0.0",
"react-markdown": "^9.0.0",
"use-memo-one": "^1.1.1",
"warning": "^3.0.0"
Expand Down
6 changes: 0 additions & 6 deletions packages/site/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const webpack = require('webpack');

module.exports = {
reactStrictMode: true,
output: 'standalone',
swcMinify: true,
transpilePackages: [
'@jpmorganchase/mosaic-components',
Expand Down Expand Up @@ -33,11 +32,6 @@ module.exports = {
]
},
webpack(config) {
// Swaps out Buble for a smaller version that removes the latest Regex spec features.
// See https://github.com/FormidableLabs/react-live#what-bundle-size-can-i-expect
config.plugins.push(
new webpack.NormalModuleReplacementPlugin(/^buble$/, require.resolve('@philpl/buble'))
);
// Required by MDX-JS
if (config.resolve.fallback) {
config.resolve.fallback.fs = false;
Expand Down
1 change: 0 additions & 1 deletion packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"@jpmorganchase/mosaic-standard-generator": "^0.1.0-beta.85",
"@jpmorganchase/mosaic-store": "^0.1.0-beta.85",
"@jpmorganchase/mosaic-theme": "^0.1.0-beta.85",
"@philpl/buble": "^0.19.7",
"@salt-ds/core": "^1.33.0",
"@salt-ds/lab": "1.0.0-alpha.50",
"@types/react": "^18.0.26",
Expand Down
5 changes: 0 additions & 5 deletions packages/standard-generator/src/templates/next.config.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ module.exports = {
]
},
webpack(config) {
// Swaps out Buble for a smaller version that removes the latest Regex spec features.
// See https://github.com/FormidableLabs/react-live#what-bundle-size-can-i-expect
config.plugins.push(
new webpack.NormalModuleReplacementPlugin(/^buble$/, require.resolve('@philpl/buble'))
);
// Required by MDX-JS
if (config.resolve.fallback) {
config.resolve.fallback.fs = false;
Expand Down
1 change: 0 additions & 1 deletion packages/standard-generator/src/templates/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
},
"dependencies": {
{{{ printDependencies dependencies }}}
"@philpl/buble": "^0.19.7",
"@types/react": "^18.0.26",
"next": "^13.4.1",
"next-auth": "^4.24.5"
Expand Down
Loading

0 comments on commit 61af0cc

Please sign in to comment.