Skip to content

Commit 01df58d

Browse files
committed
Deprecate inspecting extensions
Related to zalmoxisus/crossbuilder#48
1 parent 4290116 commit 01df58d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Deprecated warning for inject.bundle.js
2-
const prefix = `chrome-extension://${window.devToolsExtensionID}/js/`;
32
/* eslint-disable no-console */
43
console.warn(
5-
`Using '${prefix}inject.bundle.js' is deprecated. ` +
6-
`Please use '${prefix}redux-devtools-extension.js' instead.`
4+
'Using Redux DevTools inside extensions is deprecated and won\'t be supported in the next major version. ' +
5+
'Please use https://github.com/zalmoxisus/remote-redux-devtools instead.'
76
);
87
/* eslint-enable no-console */

webpack/base.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const baseConfig = (params) => ({
1414
devtools: [ `${extpath}devtools/index` ],
1515
content: [ mock, `${extpath}inject/contentScript` ],
1616
pagewrap: [ `${extpath}inject/pageScriptWrap` ],
17-
'redux-devtools-extension': [ `${extpath}inject/index` ],
17+
'redux-devtools-extension': [ `${extpath}inject/index`, `${extpath}inject/deprecatedWarn` ],
1818
inject: [ `${extpath}inject/index`, `${extpath}inject/deprecatedWarn` ],
1919
...params.inputExtra
2020
},

0 commit comments

Comments
 (0)