mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +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';
|
import { RouteManagerWithRouter } from './Router';
|
||||||
|
|
||||||
export const IonReactHashRouter = /*@__PURE__*/ (() => class IonReactHashRouterInternal extends React.Component<HashRouterProps> {
|
export class IonReactHashRouter extends React.Component<HashRouterProps> {
|
||||||
render() {
|
render() {
|
||||||
console.log('hash router in your bundle!!!');
|
|
||||||
const { children, ...props } = this.props;
|
const { children, ...props } = this.props;
|
||||||
return (
|
return (
|
||||||
<HashRouter {...props}>
|
<HashRouter {...props}>
|
||||||
@ -13,4 +12,4 @@ export const IonReactHashRouter = /*@__PURE__*/ (() => class IonReactHashRouterI
|
|||||||
</HashRouter>
|
</HashRouter>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
})();
|
}
|
||||||
|
@ -3,7 +3,7 @@ import { BrowserRouter, BrowserRouterProps } from 'react-router-dom';
|
|||||||
|
|
||||||
import { RouteManagerWithRouter } from './Router';
|
import { RouteManagerWithRouter } from './Router';
|
||||||
|
|
||||||
export const IonReactRouter = /*@__PURE__*/ (() => class IonReactRouterInternal extends React.Component<BrowserRouterProps> {
|
export class IonReactRouter extends React.Component<BrowserRouterProps> {
|
||||||
render() {
|
render() {
|
||||||
const { children, ...props } = this.props;
|
const { children, ...props } = this.props;
|
||||||
return (
|
return (
|
||||||
@ -12,4 +12,4 @@ export const IonReactRouter = /*@__PURE__*/ (() => class IonReactRouterInternal
|
|||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
})();
|
}
|
||||||
|
Reference in New Issue
Block a user