Skip to content

Commit

Permalink
Fixed window issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaamann committed Dec 4, 2018
1 parent 8920f4b commit 009f204
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/format.de.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const momentDurationFormatter = require('../index');
const momentDurationFormatter = require('../dist/index');
const moment = require('moment');
const expect = require('unexpected');

Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ module.exports = {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
library: 'momentDurationFormatter',
libraryTarget: 'umd'
libraryTarget: 'umd',
globalObject: 'this'
},
mode: 'production',
module: {
Expand Down

0 comments on commit 009f204

Please sign in to comment.