Skip to content

Commit

Permalink
fix: remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
conwnet committed Feb 16, 2021
1 parent 66b09df commit 1e10326
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1,109 deletions.
36 changes: 0 additions & 36 deletions extensions/jupyter-web/extension.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,49 +19,13 @@ module.exports = /** @type WebpackConfig */ {
extension: "./src/extension.js",
},
resolve: {
// node: { fs: 'empty', child_process: 'empty', net: 'empty', tls: 'empty' },
fallback: {
fs: false,
child_process: false,
net: false,
tls: false,
stream: false,
assert: false,
url: false,
buffer: false,
querystring: false,
zlib: false,
os: false,
crypto: require.resolve("crypto-browserify"),
},
mainFields: ["module", "main"],
extensions: [".ts", ".js"], // support ts-files and js-files
alias: {
https: "https-browserify",
http: "http-browserify",
},
},
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
use: [
{
// configure TypeScript loader:
// * enable sources maps for end-to-end source maps
loader: "ts-loader",
options: {
compilerOptions: {
sourceMap: true,
declaration: false,
},
},
},
],
},
],
},
externals: {
vscode: "commonjs vscode", // ignored because it doesn't exist
},
Expand Down
14 changes: 0 additions & 14 deletions extensions/jupyter-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,9 @@
"dev": "webpack --config extension.webpack.config.js --watch"
},
"devDependencies": {
"@types/mocha": "^2.2.42",
"@types/node": "^7.0.43",
"@types/vscode": "^1.52.0",
"eslint": "^4.6.1",
"typescript": "^2.6.1",
"webpack": "^5.21.2",
"webpack-cli": "^4.5.0"
},
"dependencies": {
"cheerio": "^1.0.0-rc.2",
"crypto-browserify": "^3.12.0",
"global-jsdom": "^8.0.0-beta.1",
"http-browserify": "^1.7.0",
"https-browserify": "^1.0.0",
"jsdom": "^11.5.1",
"node-prismjs": "^0.1.1",
"path": "^0.12.7",
"prismjs": "^1.9.0"
}
}
Loading

0 comments on commit 1e10326

Please sign in to comment.