Skip to content

Commit

Permalink
Update babel dependency in stencil react foundation doc (#491)
Browse files Browse the repository at this point in the history
## What changed?
* Updated the Babel plugin dependency that's recommended in the React
foundation doc for Stencil, since it has moved into a new package since
the doc was original created

## Release notes draft
* Stencil React foundation doc has been updated to work with the latest
Babel plugin packages. Now the guidance works for React 18.

Co-authored-by: Traci Porter <[email protected]>
  • Loading branch information
becomevocal and bc-traciporter authored Sep 5, 2024
1 parent 52425ba commit 0b1a704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/storefront/stencil/themes/foundations/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Navigate into the root Cornerstone theme folder, then install the following npm
cd ~/path/to/theme/dir

# install dependencies
npm install --save-dev @material-ui/core react react-dom babel-plugin-transform-object-assign @babel/preset-react
npm install --save-dev @material-ui/core react react-dom @babel/plugin-transform-object-assign @babel/preset-react
```

### Update webpack.common.js
Expand All @@ -46,7 +46,7 @@ Update` webpack.common.js` with the new presets and plugins.
...
plugins: [
...
'transform-object-assign',
'@babel/plugin-transform-object-assign',
],
```

Expand Down

0 comments on commit 0b1a704

Please sign in to comment.