Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from "react";
import {Switch} from "react-router-dom";
import Notfound from "component/Notfound";
import Route from "framework/component/Route";
import {Async} from "framework/component/Async";
/** common */
const Footer = Async(() => import(/* webpackChunkName:"footer" */ "module/common/footer"), "View");
const IntroHome = Async(() => import(/* webpackChunkName: "IntroHome" */ "module/intro/home"), "View");
const IntroAbout = Async(() => import(/* webpackChunkName: "IntroAbout" */ "module/intro/about"), "View");
const IntroResume = Async(() => import(/* webpackChunkName: "IntroResume" */ "module/intro/resume"), "View");
/** module */
const NoteList = Async(() => import(/* webpackChunkName:"noteList" */ "module/note/list"), "View");
const NoteDetail = Async(() => import(/* webpackChunkName: "noteDetail" */ "module/note/detail"), "View");
class Component extends React.PureComponent {
render() {
return (
<div>
{/* TODO: IE浏览器不支持 <main> */}
<main>
</main></main></div>
// Why unable to use import() with magic comments
// Ref: https://github.com/airbnb/babel-plugin-dynamic-import-webpack/issues/34
import React from "react";
import {Switch} from "react-router-dom";
import Notfound from "component/Notfound";
import Route from "framework/component/Route";
import {Async} from "framework/component/Async";
/** common */
const Footer = Async(() => import(/* webpackChunkName:"footer" */ "module/common/footer"), "View");
const IntroHome = Async(() => import(/* webpackChunkName: "IntroHome" */ "module/intro/home"), "View");
const IntroAbout = Async(() => import(/* webpackChunkName: "IntroAbout" */ "module/intro/about"), "View");
const IntroResume = Async(() => import(/* webpackChunkName: "IntroResume" */ "module/intro/resume"), "View");
/** module */
const NoteList = Async(() => import(/* webpackChunkName:"noteList" */ "module/note/list"), "View");
const NoteDetail = Async(() => import(/* webpackChunkName: "noteDetail" */ "module/note/detail"), "View");
class Component extends React.PureComponent {
render() {
return (
<div>
{/* TODO: IE浏览器不支持 <main> */}
<main>
</main></main></div>
// Why unable to use import() with magic comments
// Ref: https://github.com/airbnb/babel-plugin-dynamic-import-webpack/issues/34
import React from "react";
import {Switch} from "react-router-dom";
import Notfound from "component/Notfound";
import Route from "framework/component/Route";
import {Async} from "framework/component/Async";
/** common */
const Footer = Async(() => import(/* webpackChunkName:"footer" */ "module/common/footer"), "View");
const IntroHome = Async(() => import(/* webpackChunkName: "IntroHome" */ "module/intro/home"), "View");
const IntroAbout = Async(() => import(/* webpackChunkName: "IntroAbout" */ "module/intro/about"), "View");
const IntroResume = Async(() => import(/* webpackChunkName: "IntroResume" */ "module/intro/resume"), "View");
/** module */
const NoteList = Async(() => import(/* webpackChunkName:"noteList" */ "module/note/list"), "View");
const NoteDetail = Async(() => import(/* webpackChunkName: "noteDetail" */ "module/note/detail"), "View");
class Component extends React.PureComponent {
render() {
return (
<div>
{/* TODO: IE浏览器不支持 <main> */}
<main>
</main></main></div>
import React from "react";
import {Switch} from "react-router-dom";
import Notfound from "component/Notfound";
import Route from "framework/component/Route";
import {Async} from "framework/component/Async";
/** common */
const Footer = Async(() => import(/* webpackChunkName:"footer" */ "module/common/footer"), "View");
const IntroHome = Async(() => import(/* webpackChunkName: "IntroHome" */ "module/intro/home"), "View");
const IntroAbout = Async(() => import(/* webpackChunkName: "IntroAbout" */ "module/intro/about"), "View");
const IntroResume = Async(() => import(/* webpackChunkName: "IntroResume" */ "module/intro/resume"), "View");
/** module */
const NoteList = Async(() => import(/* webpackChunkName:"noteList" */ "module/note/list"), "View");
const NoteDetail = Async(() => import(/* webpackChunkName: "noteDetail" */ "module/note/detail"), "View");
class Component extends React.PureComponent {
render() {
return (
<div>
{/* TODO: IE浏览器不支持 <main> */}
<main>
</main></main></div>
// Why unable to use import() with magic comments
// Ref: https://github.com/airbnb/babel-plugin-dynamic-import-webpack/issues/34
import React from "react";
import {Switch} from "react-router-dom";
import Notfound from "component/Notfound";
import Route from "framework/component/Route";
import {Async} from "framework/component/Async";
/** common */
const Footer = Async(() => import(/* webpackChunkName:"footer" */ "module/common/footer"), "View");
const IntroHome = Async(() => import(/* webpackChunkName: "IntroHome" */ "module/intro/home"), "View");
const IntroAbout = Async(() => import(/* webpackChunkName: "IntroAbout" */ "module/intro/about"), "View");
const IntroResume = Async(() => import(/* webpackChunkName: "IntroResume" */ "module/intro/resume"), "View");
/** module */
const NoteList = Async(() => import(/* webpackChunkName:"noteList" */ "module/note/list"), "View");
const NoteDetail = Async(() => import(/* webpackChunkName: "noteDetail" */ "module/note/detail"), "View");
class Component extends React.PureComponent {
render() {
return (
<div>
{/* TODO: IE浏览器不支持 <main> */}
<main>
</main></main></div>
// Why unable to use import() with magic comments
// Ref: https://github.com/airbnb/babel-plugin-dynamic-import-webpack/issues/34
import React from "react";
import {Switch} from "react-router-dom";
import Notfound from "component/Notfound";
import Route from "framework/component/Route";
import {Async} from "framework/component/Async";
/** common */
const Footer = Async(() => import(/* webpackChunkName:"footer" */ "module/common/footer"), "View");
const IntroHome = Async(() => import(/* webpackChunkName: "IntroHome" */ "module/intro/home"), "View");
const IntroAbout = Async(() => import(/* webpackChunkName: "IntroAbout" */ "module/intro/about"), "View");
const IntroResume = Async(() => import(/* webpackChunkName: "IntroResume" */ "module/intro/resume"), "View");
/** module */
const NoteList = Async(() => import(/* webpackChunkName:"noteList" */ "module/note/list"), "View");
const NoteDetail = Async(() => import(/* webpackChunkName: "noteDetail" */ "module/note/detail"), "View");
class Component extends React.PureComponent {
render() {
return (
<div>
{/* TODO: IE浏览器不支持 <main> */}
<main>
</main></main></div>