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 Jan 30, 2019
1 parent c071276 commit 01fa45f
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 01fa45f

Please sign in to comment.