aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Settgast <csett86@web.de>2022-03-25 07:05:38 +0100
committerGitHub <noreply@github.com>2022-03-25 07:05:38 +0100
commit5c53a8cb3ea468ca43db448273d6c1d18d8f36ee (patch)
tree888b22def38c335151bb7fa7a807f87960cd6b6b
parentf58f8c90ffa0fb6cb7a82d4c7854043a055f4e13 (diff)
chore(deps): remove process polyfill (#738)
The @atlaskit/navigation also works fine without reference to whether its running on mac or not (for the way its used in this project).
-rw-r--r--app/features/navbar/components/Navbar.js2
-rw-r--r--app/features/utils/functions.js11
-rw-r--r--package-lock.json16
-rw-r--r--package.json1
-rw-r--r--webpack.renderer.js9
5 files changed, 1 insertions, 38 deletions
diff --git a/app/features/navbar/components/Navbar.js b/app/features/navbar/components/Navbar.js
index 41e9e00..952519a 100644
--- a/app/features/navbar/components/Navbar.js
+++ b/app/features/navbar/components/Navbar.js
@@ -7,7 +7,6 @@ import React, { Component } from 'react';
import { connect } from 'react-redux';
import { SettingsButton, SettingsDrawer } from '../../settings';
-import { isElectronMac } from '../../utils';
import HelpButton from './HelpButton';
import Logo from './Logo';
@@ -66,7 +65,6 @@ class Navbar extends Component<Props, *> {
globalPrimaryActions = { this._getPrimaryActions() }
globalPrimaryIcon = { <Logo /> }
globalSecondaryActions = { this._getSecondaryActions() }
- isElectronMac = { isElectronMac() }
isOpen = { false }
isResizeable = { false } />
);
diff --git a/app/features/utils/functions.js b/app/features/utils/functions.js
index 36db8b3..0a1149d 100644
--- a/app/features/utils/functions.js
+++ b/app/features/utils/functions.js
@@ -1,18 +1,7 @@
-/* global process */
-
// @flow
/**
- * Return true if Electron app is running on Mac system.
- *
- * @returns {boolean}
- */
-export function isElectronMac() {
- return process.platform === 'darwin';
-}
-
-/**
* Normalizes the given server URL so it has the proper scheme.
*
* @param {string} url - URL with or without scheme.
diff --git a/package-lock.json b/package-lock.json
index 4b4cd06..c18731e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -62,7 +62,6 @@
"moment": "^2.29.1",
"mousetrap": "^1.6.5",
"patch-package": "6.2.2",
- "process": "^0.11.10",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-i18next": "^11.8.12",
@@ -11404,15 +11403,6 @@
"renderkid": "^3.0.0"
}
},
- "node_modules/process": {
- "version": "0.11.10",
- "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
- "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
- "dev": true,
- "engines": {
- "node": ">= 0.6.0"
- }
- },
"node_modules/process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
@@ -23466,12 +23456,6 @@
"renderkid": "^3.0.0"
}
},
- "process": {
- "version": "0.11.10",
- "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
- "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
- "dev": true
- },
"process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
diff --git a/package.json b/package.json
index 236b023..6b53b7d 100644
--- a/package.json
+++ b/package.json
@@ -181,7 +181,6 @@
"moment": "^2.29.1",
"mousetrap": "^1.6.5",
"patch-package": "6.2.2",
- "process": "^0.11.10",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-i18next": "^11.8.12",
diff --git a/webpack.renderer.js b/webpack.renderer.js
index 0506225..d28284d 100644
--- a/webpack.renderer.js
+++ b/webpack.renderer.js
@@ -1,6 +1,5 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
-const webpack = require('webpack');
const ELECTRON_VERSION = require('./package.json').devDependencies.electron;
module.exports = {
@@ -15,9 +14,6 @@ module.exports = {
plugins: [
new HtmlWebpackPlugin({
template: './app/index.html'
- }),
- new webpack.ProvidePlugin({
- process: 'process/browser'
})
],
output: {
@@ -84,10 +80,7 @@ module.exports = {
resolve: {
modules: [
path.resolve('./node_modules')
- ],
- alias: {
- process: 'process/browser'
- }
+ ]
}
};