Skip to content

Commit 952c655

Browse files
authored
Merge pull request #5 from Finesse/patch-2
Fix compatibility with Webpack
2 parents 3e55c70 + 0ef950f commit 952c655

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

dist/jsonToFormData.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
(function(root, factory) {
2+
if (!root) {
3+
root = {};
4+
}
25
if (typeof define === "function" && define.amd) {
36
define([], function() {
47
return root.jsonToFormData = factory();

dist/jsonToFormData.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jsonToFormData.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jsonToFormData.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
(function (root, factory) {
2+
// root is undefined in a Webpack bundle
3+
if (!root) {
4+
root = {};
5+
}
6+
27
if (typeof define === 'function' && define.amd) {
38

49
define([], function() {

0 commit comments

Comments
 (0)