Skip to content

Commit a349fec

Browse files
committed
update webpack config
1 parent 2a3a6d1 commit a349fec

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@howiefh/ant-path-matcher",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Ant Path Matcher",
55
"main": "dist/ant-path-matcher.js",
66
"private": false,

test/index.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// var AntPathMatcher = require('../dist/ant-path-matcher');
2-
// var AntPathMatcher = require('../src/index');
31
import AntPathMatcher from "../src/index";
42

53
var pathMatcher = null;

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
output: {
77
path: path.resolve(__dirname, 'dist'),
88
filename: 'ant-path-matcher.js',
9-
globalObject: 'this',
9+
globalObject: 'typeof self !== \'undefined\' ? self : this',
1010
library: {
1111
name: 'AntPathMatcher',
1212
type: 'umd',

0 commit comments

Comments
 (0)