Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e915a5

Browse files
committed
feat: remove load-script
1 parent aab7624 commit 9e915a5

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

‎config/webpack.config.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ module.exports = function(webpackEnv) {
201201
output: {
202202
ecma: 5,
203203
comments: false,
204-
preamble: `// v${pkg.version} ${new Date()} by Mdebug Team. Released under the MIT License.`,
204+
preamble: `// v${
205+
pkg.version
206+
} ${new Date()} by Mdebug Team. Released under the MIT License.`,
205207
// Turned on because emoji and regex is not minified properly using default
206208
// https://github.com/facebook/create-react-app/issues/2488
207209
ascii_only: true,

‎docs/index.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"jest-environment-jsdom-fourteen": "0.1.0",
4646
"jest-resolve": "24.7.1",
4747
"jest-watch-typeahead": "0.3.0",
48-
"load-script": "^1.0.0",
4948
"loader-utils": "^1.1.0",
5049
"mini-css-extract-plugin": "0.5.0",
5150
"object-assign": "4.1.1",
@@ -60,9 +59,9 @@
6059
"qs": "^6.9.4",
6160
"raf": "3.4.0",
6261
"react": "^17.0.2",
63-
"react-dev-utils": "^9.0.1",
64-
"react-devtools-inline": "4.0.5",
6562
"react-dom": "^17.0.2",
63+
"react-devtools-inline": "4.0.5",
64+
"react-dev-utils": "^9.0.1",
6665
"react-draggable": "^4.4.3",
6766
"react-inspector": "^2.3.0",
6867
"react-redux": "^5.0.7",

‎src/index.js‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,11 @@ import { init as polyfillInit } from './polyfill';
1010
import './index.css';
1111
import store from './store';
1212

13-
const loadScript = require('load-script');
1413
const { on, trigger: emit } = emitter;
1514

1615
let ready = false;
1716
const init = (options = {}) => {
1817
if (!ready) {
19-
loadScript('https://unpkg.com/browse/react-devtools-inline@4.0.5/dist/frontend.js');
20-
loadScript('https://unpkg.com/browse/react-devtools-inline@4.0.5/dist/backend.js');
2118
// polyfill fetch console etc
2219
polyfillInit();
2320
// 创建mdebug节点

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /