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).
This commit is contained in:
Christoph Settgast 2022-03-25 07:05:38 +01:00 committed by GitHub
parent f58f8c90ff
commit 5c53a8cb3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1 additions and 38 deletions

View file

@ -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 } />
);

View file

@ -1,17 +1,6 @@
/* 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.
*

16
package-lock.json generated
View file

@ -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",

View file

@ -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",

View file

@ -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'
}
]
}
};