mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-14 05:36:46 +03:00
chore(deps): update dependency webpack to v5 (#788)
* chore(deps): update dependency webpack to v5 * Add path * changes * Add path to extension * Fix things * Fix that Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Nathan Bierema <nbierema@gmail.com>
This commit is contained in:
parent
2387834778
commit
6660eaae18
|
@ -4,5 +4,5 @@
|
||||||
"@babel/preset-react",
|
"@babel/preset-react",
|
||||||
"@babel/preset-typescript"
|
"@babel/preset-typescript"
|
||||||
],
|
],
|
||||||
"plugins": [["@babel/plugin-proposal-class-properties"]]
|
"plugins": ["@babel/plugin-proposal-class-properties"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
"type-check": "tsc --noEmit"
|
"type-check": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@babel/polyfill": "^7.12.1",
|
||||||
"@redux-devtools/app": "^1.0.0-8",
|
"@redux-devtools/app": "^1.0.0-8",
|
||||||
"@redux-devtools/core": "^3.9.0",
|
"@redux-devtools/core": "^3.9.0",
|
||||||
"@redux-devtools/instrument": "^1.11.0",
|
"@redux-devtools/instrument": "^1.11.0",
|
||||||
|
@ -49,8 +50,6 @@
|
||||||
"redux": "^4.1.1"
|
"redux": "^4.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-proposal-decorators": "^7.14.5",
|
|
||||||
"@babel/polyfill": "^7.12.1",
|
|
||||||
"@babel/register": "^7.15.3",
|
"@babel/register": "^7.15.3",
|
||||||
"bestzip": "^2.2.0",
|
"bestzip": "^2.2.0",
|
||||||
"chromedriver": "^91.0.1",
|
"chromedriver": "^91.0.1",
|
||||||
|
@ -64,6 +63,7 @@
|
||||||
"eslint-plugin-react": "^7.24.0",
|
"eslint-plugin-react": "^7.24.0",
|
||||||
"eslint-plugin-react-hooks": "^4.2.0",
|
"eslint-plugin-react-hooks": "^4.2.0",
|
||||||
"gitbook-cli": "^2.3.2",
|
"gitbook-cli": "^2.3.2",
|
||||||
|
"path-browserify": "^1.0.1",
|
||||||
"react-transform-catch-errors": "^1.0.2",
|
"react-transform-catch-errors": "^1.0.2",
|
||||||
"react-transform-hmr": "^1.0.4",
|
"react-transform-hmr": "^1.0.4",
|
||||||
"selenium-webdriver": "^3.6.0",
|
"selenium-webdriver": "^3.6.0",
|
||||||
|
|
|
@ -31,12 +31,7 @@ const baseConfig = (params) => ({
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin(params.globals),
|
new webpack.DefinePlugin(params.globals),
|
||||||
...(params.plugins
|
...(params.plugins ? params.plugins : []),
|
||||||
? params.plugins
|
|
||||||
: [
|
|
||||||
new webpack.optimize.ModuleConcatenationPlugin(),
|
|
||||||
new webpack.optimize.OccurrenceOrderPlugin(),
|
|
||||||
]),
|
|
||||||
].concat(
|
].concat(
|
||||||
params.copy
|
params.copy
|
||||||
? new CopyPlugin({
|
? new CopyPlugin({
|
||||||
|
@ -65,6 +60,9 @@ const baseConfig = (params) => ({
|
||||||
tmp: path.join(__dirname, '../build/tmp'),
|
tmp: path.join(__dirname, '../build/tmp'),
|
||||||
},
|
},
|
||||||
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||||
|
fallback: {
|
||||||
|
path: require.resolve('path-browserify'),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"@babel/preset-typescript": "^7.15.0",
|
"@babel/preset-typescript": "^7.15.0",
|
||||||
"@types/jest": "^27.0.1",
|
"@types/jest": "^27.0.1",
|
||||||
"@types/node": "^14.17.12",
|
"@types/node": "^14.17.12",
|
||||||
"@types/webpack": "^4.41.30",
|
"@types/webpack": "^5.28.0",
|
||||||
"@types/webpack-dev-server": "^4.0.3",
|
"@types/webpack-dev-server": "^4.0.3",
|
||||||
"@types/webpack-env": "^1.16.2",
|
"@types/webpack-env": "^1.16.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.29.3",
|
"@typescript-eslint/eslint-plugin": "^4.29.3",
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
"ts-node": "^10.2.1",
|
"ts-node": "^10.2.1",
|
||||||
"typescript": "^4.3.5",
|
"typescript": "^4.3.5",
|
||||||
"url-loader": "^4.1.1",
|
"url-loader": "^4.1.1",
|
||||||
"webpack": "^4.46.0",
|
"webpack": "^5.51.1",
|
||||||
"webpack-cli": "^4.8.0",
|
"webpack-cli": "^4.8.0",
|
||||||
"webpack-dev-server": "^4.0.0"
|
"webpack-dev-server": "^4.0.0"
|
||||||
},
|
},
|
||||||
|
|
|
@ -69,6 +69,7 @@
|
||||||
"enzyme": "^3.11.0",
|
"enzyme": "^3.11.0",
|
||||||
"enzyme-adapter-react-16": "^1.15.6",
|
"enzyme-adapter-react-16": "^1.15.6",
|
||||||
"enzyme-to-json": "^3.6.2",
|
"enzyme-to-json": "^3.6.2",
|
||||||
|
"path-browserify": "^1.0.1",
|
||||||
"react": "^16.14.0",
|
"react": "^16.14.0",
|
||||||
"react-dom": "^16.14.0"
|
"react-dom": "^16.14.0"
|
||||||
},
|
},
|
||||||
|
|
|
@ -47,6 +47,9 @@ module.exports = (env: { development?: boolean; platform?: string } = {}) => ({
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||||
|
fallback: {
|
||||||
|
path: require.resolve('path-browserify'),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
|
|
|
@ -44,11 +44,13 @@ module.exports = (env: { production?: boolean } = {}) => ({
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||||
|
fallback: {
|
||||||
|
path: require.resolve('path-browserify'),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'process.env': {
|
'process.env': {
|
||||||
NODE_ENV: JSON.stringify('production'),
|
|
||||||
PLATFORM: JSON.stringify('web'),
|
PLATFORM: JSON.stringify('web'),
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { absolutifyCaret } from '../utils/dom/absolutifyCaret';
|
||||||
import { ScriptLine } from '../utils/stack-frame';
|
import { ScriptLine } from '../utils/stack-frame';
|
||||||
import generateAnsiHTML from '../utils/generateAnsiHTML';
|
import generateAnsiHTML from '../utils/generateAnsiHTML';
|
||||||
|
|
||||||
import { codeFrameColumns } from '@babel/code-frame';
|
// import { codeFrameColumns } from '@babel/code-frame';
|
||||||
import { nicinabox as theme } from 'redux-devtools-themes';
|
import { nicinabox as theme } from 'redux-devtools-themes';
|
||||||
|
|
||||||
interface StackFrameCodeBlockPropsType {
|
interface StackFrameCodeBlockPropsType {
|
||||||
|
@ -48,24 +48,25 @@ function StackFrameCodeBlock(props: StackFrameCodeBlockPropsType) {
|
||||||
}
|
}
|
||||||
sourceCode[line - 1] = text;
|
sourceCode[line - 1] = text;
|
||||||
});
|
});
|
||||||
const ansiHighlight = codeFrameColumns(
|
// const ansiHighlight = codeFrameColumns(
|
||||||
sourceCode.join('\n'),
|
// sourceCode.join('\n'),
|
||||||
{
|
// {
|
||||||
start: {
|
// start: {
|
||||||
line: lineNum,
|
// line: lineNum,
|
||||||
column:
|
// column:
|
||||||
columnNum == null
|
// columnNum == null
|
||||||
? 0
|
// ? 0
|
||||||
: columnNum - (isFinite(whiteSpace) ? whiteSpace : 0),
|
// : columnNum - (isFinite(whiteSpace) ? whiteSpace : 0),
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
forceColor: true,
|
// forceColor: true,
|
||||||
linesAbove: contextSize,
|
// linesAbove: contextSize,
|
||||||
linesBelow: contextSize,
|
// linesBelow: contextSize,
|
||||||
}
|
// }
|
||||||
);
|
// );
|
||||||
const htmlHighlight = generateAnsiHTML(ansiHighlight);
|
// const htmlHighlight = generateAnsiHTML(ansiHighlight);
|
||||||
|
const htmlHighlight = generateAnsiHTML(sourceCode.join('\n'));
|
||||||
const code = document.createElement('code');
|
const code = document.createElement('code');
|
||||||
code.innerHTML = htmlHighlight;
|
code.innerHTML = htmlHighlight;
|
||||||
absolutifyCaret(code);
|
absolutifyCaret(code);
|
||||||
|
|
35
yarn.lock
35
yarn.lock
|
@ -688,7 +688,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@babel/plugin-proposal-decorators@npm:^7.12.12, @babel/plugin-proposal-decorators@npm:^7.14.5":
|
"@babel/plugin-proposal-decorators@npm:^7.12.12":
|
||||||
version: 7.14.5
|
version: 7.14.5
|
||||||
resolution: "@babel/plugin-proposal-decorators@npm:7.14.5"
|
resolution: "@babel/plugin-proposal-decorators@npm:7.14.5"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -4890,6 +4890,7 @@ __metadata:
|
||||||
jsondiffpatch: ^0.4.1
|
jsondiffpatch: ^0.4.1
|
||||||
localforage: ^1.10.0
|
localforage: ^1.10.0
|
||||||
lodash: ^4.17.21
|
lodash: ^4.17.21
|
||||||
|
path-browserify: ^1.0.1
|
||||||
prop-types: ^15.7.2
|
prop-types: ^15.7.2
|
||||||
react: ^16.14.0
|
react: ^16.14.0
|
||||||
react-dom: ^16.14.0
|
react-dom: ^16.14.0
|
||||||
|
@ -7892,17 +7893,14 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/webpack@npm:^4.41.30":
|
"@types/webpack@npm:^5.28.0":
|
||||||
version: 4.41.30
|
version: 5.28.0
|
||||||
resolution: "@types/webpack@npm:4.41.30"
|
resolution: "@types/webpack@npm:5.28.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node": "*"
|
"@types/node": "*"
|
||||||
"@types/tapable": ^1
|
tapable: ^2.2.0
|
||||||
"@types/uglify-js": "*"
|
webpack: ^5
|
||||||
"@types/webpack-sources": "*"
|
checksum: a038d7e12dd109c6a8d2eb744fd32070ef94f1655e730fb1443b370db98864c3a0e408638b02d12ba08269b9c012b3be8b801117ced2d1102e7676203fd663ed
|
||||||
anymatch: ^3.0.0
|
|
||||||
source-map: ^0.6.0
|
|
||||||
checksum: a247f48905777ac96fd43699cbef0aa053d25316f4242f3b1b9c5193850883fe42397e745a87b209c1da94f61dbbb9db2cef0a74b420bd3fe3af3be6a5ed039f
|
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
@ -23343,6 +23341,13 @@ fsevents@^1.2.7:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"path-browserify@npm:^1.0.1":
|
||||||
|
version: 1.0.1
|
||||||
|
resolution: "path-browserify@npm:1.0.1"
|
||||||
|
checksum: c6d7fa376423fe35b95b2d67990060c3ee304fc815ff0a2dc1c6c3cfaff2bd0d572ee67e18f19d0ea3bbe32e8add2a05021132ac40509416459fffee35200699
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"path-dirname@npm:^1.0.0":
|
"path-dirname@npm:^1.0.0":
|
||||||
version: 1.0.2
|
version: 1.0.2
|
||||||
resolution: "path-dirname@npm:1.0.2"
|
resolution: "path-dirname@npm:1.0.2"
|
||||||
|
@ -25877,7 +25882,6 @@ fsevents@^1.2.7:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "remotedev-redux-devtools-extension@workspace:extension"
|
resolution: "remotedev-redux-devtools-extension@workspace:extension"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/plugin-proposal-decorators": ^7.14.5
|
|
||||||
"@babel/polyfill": ^7.12.1
|
"@babel/polyfill": ^7.12.1
|
||||||
"@babel/register": ^7.15.3
|
"@babel/register": ^7.15.3
|
||||||
"@redux-devtools/app": ^1.0.0-8
|
"@redux-devtools/app": ^1.0.0-8
|
||||||
|
@ -25901,6 +25905,7 @@ fsevents@^1.2.7:
|
||||||
gitbook-cli: ^2.3.2
|
gitbook-cli: ^2.3.2
|
||||||
jsan: ^3.1.13
|
jsan: ^3.1.13
|
||||||
lodash: ^4.17.21
|
lodash: ^4.17.21
|
||||||
|
path-browserify: ^1.0.1
|
||||||
react: ^16.14.0
|
react: ^16.14.0
|
||||||
react-dom: ^16.14.0
|
react-dom: ^16.14.0
|
||||||
react-icons: ^3.11.0
|
react-icons: ^3.11.0
|
||||||
|
@ -26304,7 +26309,7 @@ resolve@^2.0.0-next.3:
|
||||||
"@babel/preset-typescript": ^7.15.0
|
"@babel/preset-typescript": ^7.15.0
|
||||||
"@types/jest": ^27.0.1
|
"@types/jest": ^27.0.1
|
||||||
"@types/node": ^14.17.12
|
"@types/node": ^14.17.12
|
||||||
"@types/webpack": ^4.41.30
|
"@types/webpack": ^5.28.0
|
||||||
"@types/webpack-dev-server": ^4.0.3
|
"@types/webpack-dev-server": ^4.0.3
|
||||||
"@types/webpack-env": ^1.16.2
|
"@types/webpack-env": ^1.16.2
|
||||||
"@typescript-eslint/eslint-plugin": ^4.29.3
|
"@typescript-eslint/eslint-plugin": ^4.29.3
|
||||||
|
@ -26340,7 +26345,7 @@ resolve@^2.0.0-next.3:
|
||||||
ts-node: ^10.2.1
|
ts-node: ^10.2.1
|
||||||
typescript: ^4.3.5
|
typescript: ^4.3.5
|
||||||
url-loader: ^4.1.1
|
url-loader: ^4.1.1
|
||||||
webpack: ^4.46.0
|
webpack: ^5.51.1
|
||||||
webpack-cli: ^4.8.0
|
webpack-cli: ^4.8.0
|
||||||
webpack-dev-server: ^4.0.0
|
webpack-dev-server: ^4.0.0
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
|
@ -30401,7 +30406,7 @@ typescript@^4.3.5:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"webpack@npm:4, webpack@npm:^4.46.0":
|
"webpack@npm:4":
|
||||||
version: 4.46.0
|
version: 4.46.0
|
||||||
resolution: "webpack@npm:4.46.0"
|
resolution: "webpack@npm:4.46.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -30439,7 +30444,7 @@ typescript@^4.3.5:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"webpack@npm:^5.38.1":
|
"webpack@npm:^5, webpack@npm:^5.38.1, webpack@npm:^5.51.1":
|
||||||
version: 5.51.1
|
version: 5.51.1
|
||||||
resolution: "webpack@npm:5.51.1"
|
resolution: "webpack@npm:5.51.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user