Skip to content

Commit d4c6967

Browse files
authored
Merge pull request #80 from martinRenou/fix_notebook_support
Fix Notebook support
2 parents 8ad511e + 1e4329e commit d4c6967

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

MANIFEST.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
include LICENSE.txt
22
include README.md
33

4-
include setupbase.py
5-
include pytest.ini
6-
include .coverage.rc
7-
84
include tsconfig.json
95
include package.json
106
include webpack.config.js

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@jupyter-widgets/controls": "^2.0.0",
5050
"binary-search-tree": "^0.2.6",
5151
"ganyjs": "^0.6.3",
52+
"process": "^0.11.10",
5253
"three": "^0.118.0",
5354
"util": "^0.12.3",
5455
"uuid": "^3.3.3"

webpack.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const webpack = require('webpack');
12
const path = require('path');
23
const version = require('./package.json').version;
34

@@ -14,7 +15,10 @@ const externals = ['@jupyter-widgets/base'];
1415
const resolve = {
1516
// Add '.ts' and '.tsx' as resolvable extensions.
1617
extensions: [".webpack.js", ".web.js", ".ts", ".js"],
17-
fallback: { "util": require.resolve("util/") }
18+
fallback: {
19+
"util": require.resolve("util/"),
20+
"process": require.resolve("process/browser")
21+
}
1822
};
1923

2024
module.exports = [

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2423,6 +2423,11 @@ process-nextick-args@~2.0.0:
24232423
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz"
24242424
integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==
24252425

2426+
process@^0.11.10:
2427+
version "0.11.10"
2428+
resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
2429+
integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI=
2430+
24262431
promise-inflight@^1.0.1:
24272432
version "1.0.1"
24282433
resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz"

0 commit comments

Comments
 (0)