mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 09:34:19 +08:00
chore(react): removing console log and tree shaking change
This commit is contained in:
@ -3,9 +3,8 @@ import { HashRouter, HashRouterProps } from 'react-router-dom';
|
||||
|
||||
import { RouteManagerWithRouter } from './Router';
|
||||
|
||||
export const IonReactHashRouter = /*@__PURE__*/ (() => class IonReactHashRouterInternal extends React.Component<HashRouterProps> {
|
||||
export class IonReactHashRouter extends React.Component<HashRouterProps> {
|
||||
render() {
|
||||
console.log('hash router in your bundle!!!');
|
||||
const { children, ...props } = this.props;
|
||||
return (
|
||||
<HashRouter {...props}>
|
||||
@ -13,4 +12,4 @@ export const IonReactHashRouter = /*@__PURE__*/ (() => class IonReactHashRouterI
|
||||
</HashRouter>
|
||||
);
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ import { BrowserRouter, BrowserRouterProps } from 'react-router-dom';
|
||||
|
||||
import { RouteManagerWithRouter } from './Router';
|
||||
|
||||
export const IonReactRouter = /*@__PURE__*/ (() => class IonReactRouterInternal extends React.Component<BrowserRouterProps> {
|
||||
export class IonReactRouter extends React.Component<BrowserRouterProps> {
|
||||
render() {
|
||||
const { children, ...props } = this.props;
|
||||
return (
|
||||
@ -12,4 +12,4 @@ export const IonReactRouter = /*@__PURE__*/ (() => class IonReactRouterInternal
|
||||
</BrowserRouter>
|
||||
);
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
Reference in New Issue
Block a user