Browse Source

Added globalObject so it does not fallback to window

Jasper Dansercoer 5 years ago
parent
commit
5e67be7fc0
2 changed files with 3 additions and 2 deletions
  1. 1 1
      package-lock.json
  2. 2 1
      webpack.config.js

+ 1 - 1
package-lock.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "inputmask",
   "name": "inputmask",
-  "version": "5.0.6-beta.13",
+  "version": "5.0.6-beta.15",
   "lockfileVersion": 1,
   "lockfileVersion": 1,
   "requires": true,
   "requires": true,
   "dependencies": {
   "dependencies": {

+ 2 - 1
webpack.config.js

@@ -45,7 +45,8 @@ module.exports = function (env, argv) {
 		output: {
 		output: {
 			path: __dirname,
 			path: __dirname,
 			filename: "[name].js",
 			filename: "[name].js",
-			libraryTarget: "umd"
+			libraryTarget: "umd",
+			globalObject: "this"
 		},
 		},
 		externals: {
 		externals: {
 			"jquery": {
 			"jquery": {