Skip to content

Commit

Permalink
Merge pull request #1 from ricokahler/fix/no-spread-in-build
Browse files Browse the repository at this point in the history
fix(build): remove spread from build output
  • Loading branch information
ricokahler authored Mar 25, 2021
2 parents d80ff63 + cf5c2da commit 19a5962
Show file tree
Hide file tree
Showing 3 changed files with 240 additions and 1 deletion.
235 changes: 234 additions & 1 deletion 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"devDependencies": {
"@babel/core": "^7.13.10",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-object-rest-spread": "^7.13.8",
"@babel/plugin-transform-runtime": "^7.13.10",
"@babel/preset-env": "^7.13.12",
"@babel/preset-react": "^7.12.13",
Expand Down
5 changes: 5 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ const config = {
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-class-properties',
// for some reason, sanity's webpack config doesn't like spreads
[
'@babel/plugin-proposal-object-rest-spread',
{ loose: true, useBuiltIns: true },
],
],
babelHelpers: 'runtime',
extensions,
Expand Down

0 comments on commit 19a5962

Please sign in to comment.