The Wayback Machine - https://web.archive.org/web/20230325220826/http://github.com/gregberge/loadable-components
Skip to content

gregberge/loadable-components

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

)

* Added getEntrypointPath to ChunkExtractor and reading json from inputFilesystem instead of require

* Adds getAllScriptAssetsPaths to ChunkExtractor
2d1645d

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
January 9, 2020 21:00
December 12, 2021 18:33
December 25, 2019 15:14
January 25, 2021 00:03
August 3, 2022 09:57
January 28, 2023 15:28
February 2, 2018 15:24
December 6, 2019 15:06
January 28, 2023 15:28
December 6, 2019 15:06
December 6, 2019 15:06
December 6, 2019 15:08
January 28, 2023 15:28
January 31, 2021 19:03

loadable-components

React code splitting made easy. Reduce your bundle size without stress ✂️.

License npm package npm downloads Build Status Code style Dependencies DevDependencies Small size

npm install @loadable/component

Docs

See the documentation at loadable-components.com for more information about using Loadable Components!

Quicklinks to some of the most-visited pages:

Example

import loadable from '@loadable/component'

const OtherComponent = loadable(() => import('./OtherComponent'))

function MyComponent() {
  return (
    <div>
      <OtherComponent />
    </div>
  )
}

Supporting Loadable Components

Loadable Components is an MIT-licensed open source project. It's an independent project with ongoing development made possible thanks to the support of these awesome backers. If you'd like to join them, please consider:

License

Licensed under the MIT License, Copyright © 2017-present Greg Bergé.

See LICENSE for more information.