Skip to content

Commit

Permalink
fix(babel-preset-razzle): make commonjs wrapper plugin receive the co…
Browse files Browse the repository at this point in the history
…rrect args
  • Loading branch information
fivethreeo committed Feb 4, 2021
1 parent 3cee94e commit 4483c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-preset-razzle/babel-plugins/commonjs.js
@@ -1,6 +1,6 @@
const commonjsPlugin = require('@babel/plugin-transform-modules-commonjs');

module.exports = function() {
module.exports = function(api, options, dirname) {
const commonjs = commonjsPlugin.default(api, options, dirname);
return {
visitor: {
Expand Down

1 comment on commit 4483c71

@vercel
Copy link

@vercel vercel bot commented on 4483c71 Feb 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.