Skip to content

Commit 330213d

Browse files
committed
Fix webpack bug regarding globalObject of output
1 parent f0c5da3 commit 330213d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "algorithm-visualizer",
3-
"version": "2.1.0",
3+
"version": "2.1.2",
44
"description": "JavaScript Tracers for Algorithm Visualizer",
55
"main": "dist/tracers.js",
66
"scripts": {
7-
"build": "node ./node_modules/webpack/bin/webpack --bail --progress --config webpack.config.js"
7+
"build": "node ./node_modules/webpack/bin/webpack --bail --progress --config webpack.config.js",
8+
"prepublish": "npm run build"
89
},
910
"repository": {
1011
"type": "git",

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module.exports = [{
1616
path: buildPath,
1717
filename: 'tracers.js',
1818
libraryTarget: 'umd',
19+
globalObject: `(typeof self !== 'undefined' ? self : this)`,
1920
},
2021
module: {
2122
rules: [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy