Tobias Simetsreiter 4 anos atrás
pai
commit
10988de458
3 arquivos alterados com 17 adições e 2 exclusões
  1. 1 1
      bundle/jsonform.js
  2. 1 1
      src/jsonform.js
  3. 15 0
      test.html

+ 1 - 1
bundle/jsonform.js

@@ -5761,6 +5761,6 @@ global.JSONForm.util.setObjKey = jsonform.util.setObjKey;
 
 }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
 },{}],3:[function(require,module,exports){
-window.jsonform = require('jsonform');
+require('jsonform');
 
 },{"jsonform":1}]},{},[3]);

+ 1 - 1
src/jsonform.js

@@ -1 +1 @@
-window.jsonform = require('jsonform');
+require('jsonform');

+ 15 - 0
test.html

@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8" />
+    <title>Browserified test page</title>
+    <script type="text/javascript" src="bundle/json2csv.js"></script>
+    <script type="text/javascript" src="bundle/jsonform.js"></script>
+    <script type="text/javascript" src="bundle/mssql.js"></script>
+    <script type="text/javascript" src="bundle/js_yaml.js"></script>
+  </head>
+  <body>
+    <form id="test-form">
+    </form>
+  </body>
+</html>