Skip to content

Commit

Permalink
Fix property descriptor of config.internal in transforms/babel.js (#880)
Browse files Browse the repository at this point in the history
* Fix property descriptor of config.internal in transforms/babel.js

The default descriptor for 'configurable'is `false`, which causes the error `Cannot delete property 'internal' of #<Object>`

* Formatting
  • Loading branch information
dalcib authored and devongovett committed Feb 24, 2018
1 parent f897bf7 commit eaf51d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transforms/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ async function getConfig(asset) {
let internal = config.internal;
delete config.internal;
Object.defineProperty(config, 'internal', {
value: internal
value: internal,
configurable: true
});
}

Expand Down

0 comments on commit eaf51d0

Please sign in to comment.