Browse Source

form: Fix `getFormData` import

I missed this in #523 :confused: `get-form-data@2.x` exports an object
with a default property, like other transpiled ES modules.
Renée Kooi 7 years ago
parent
commit
dcb59ee605
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/plugins/Form.js

+ 1 - 1
src/plugins/Form.js

@@ -1,6 +1,6 @@
 const Plugin = require('../core/Plugin')
 const { findDOMElement } = require('../core/Utils')
-const getFormData = require('get-form-data')
+const getFormData = require('get-form-data').default
 
 /**
  * Form