We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 976becf + fbc00ef commit ff8a15eCopy full SHA for ff8a15e
webpack.dev.js
@@ -13,6 +13,7 @@ module.exports = {
13
filename: 'js/scripts.js',
14
chunkFilename: '[name].[chunkhash].js',
15
path: path.resolve(__dirname, 'dev-dist'),
16
+ globalObject: 'typeof self !== \'undefined\' ? self : this',
17
},
18
module: {
19
rules: [{
webpack.prod.js
@@ -9,7 +9,8 @@ module.exports = {
9
output: {
10
filename: './index.js',
11
library: 'react-timer-hook',
12
- libraryTarget: "umd"
+ libraryTarget: "umd",
0 commit comments