Skip to content

Commit

Permalink
fix: babel register node opts lost (#4101)
Browse files Browse the repository at this point in the history
* fix: babel node register

* Update packages/babel-preset-umi/dependency.js

* Update packages/babel-preset-umi/node.js

Co-authored-by: chencheng (云谦) <sorrycc@gmail.com>
  • Loading branch information
信鑫-King and sorrycc committed Mar 9, 2020
1 parent 96223df commit f951277
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-preset-umi/dependency.js
@@ -1,4 +1,4 @@
module.exports = function(opts) {
module.exports = function(api, opts) {
const { nodeEnv } = opts;
delete opts['nodeEnv'];

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-umi/node.js
@@ -1,4 +1,4 @@
module.exports = function(opts) {
module.exports = function(api, opts) {
return {
presets: [
[
Expand Down

0 comments on commit f951277

Please sign in to comment.