Skip to content

Commit

Permalink
replaced spread operator in mdx-scopes with Object.assign (gatsbyjs#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-kubrick authored and ChristopherBiscardi committed Jun 27, 2019
1 parent 90d1b93 commit 2cb9c21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/gatsby-plugin-mdx/loaders/mdx-scopes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module.exports = () => {
`const scope_${i} = require('${slash(path.join(abs, file))}').default;`
)
.join("\n") +
`export default {
${files.map((_, i) => "...scope_" + i).join(",\n")}
}`
`export default
Object.assign({}, ${files.map((_, i) => 'scope_' + i).join(',\n')} )
`
);
};

0 comments on commit 2cb9c21

Please sign in to comment.