mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 02:57:30 +00:00
Upgrade create-react-app
This commit is contained in:
parent
b9cacadcee
commit
9c6fe2a4b9
3 changed files with 4731 additions and 2506 deletions
10
package.json
10
package.json
|
|
@ -9,7 +9,7 @@
|
|||
"react": "^16.2.0",
|
||||
"react-dom": "^16.2.0",
|
||||
"react-redux": "^5.1.1",
|
||||
"react-scripts": "1.1.1",
|
||||
"react-scripts": "2.0.3",
|
||||
"redux": "^4.0.1",
|
||||
"shell-escape": "^0.2.0",
|
||||
"webamp": "^1.3.0-beta.0"
|
||||
|
|
@ -20,5 +20,11 @@
|
|||
"test": "react-scripts test --env=jsdom",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"prettier": {}
|
||||
"prettier": {},
|
||||
"browserslist": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not ie <= 11",
|
||||
"not op_mini all"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,8 +19,7 @@ export default class WebampComponent extends React.Component {
|
|||
}
|
||||
|
||||
async _loadWebamp() {
|
||||
let Webamp;
|
||||
Webamp = await import("webamp");
|
||||
const Webamp = (await import("webamp")).default;
|
||||
if (this._unmounted === true) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue