mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 22:19:48 +03:00
Fix Webpack app build
This commit is contained in:
parent
e4c221b22a
commit
e6edc33b22
|
@ -1,8 +1,8 @@
|
|||
import React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
import App from '../src';
|
||||
import { Root } from '../src';
|
||||
|
||||
render(<App />, document.getElementById('root'));
|
||||
render(<Root />, document.getElementById('root'));
|
||||
|
||||
if (module.hot) {
|
||||
// https://github.com/webpack/webpack/issues/418#issuecomment-53398056
|
||||
|
|
|
@ -9,7 +9,7 @@ import App from './containers/App';
|
|||
import { StoreState } from './reducers';
|
||||
import { StoreAction } from './actions';
|
||||
|
||||
export class ReduxDevToolsApp extends Component {
|
||||
export class Root extends Component {
|
||||
store?: Store<StoreState, StoreAction>;
|
||||
persistor?: Persistor;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ export default (env: { production?: boolean } = {}): webpack.Configuration => ({
|
|||
},
|
||||
output: {
|
||||
library: 'ReduxDevToolsApp',
|
||||
libraryExport: 'ReduxDevToolsApp',
|
||||
libraryExport: 'Root',
|
||||
libraryTarget: 'umd',
|
||||
path: path.resolve(__dirname, 'umd'),
|
||||
filename: env.production
|
||||
|
|
Loading…
Reference in New Issue
Block a user