Content-Length: 287066 | pFad | http://github.com/algorithm-visualizer/tracers.js/commit/330213dbc468fe12e7f54ccaec478cb843e4ce96

29 Fix webpack bug regarding globalObject of output · algorithm-visualizer/tracers.js@330213d · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/algorithm-visualizer/tracers.js/commit/330213dbc468fe12e7f54ccaec478cb843e4ce96

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy