Skip to content

bvanderplanck/rollup-plugin-react-remove-lazy-loading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@bvanderplanck/rollup-plugin-react-remove-lazy-loading

This plug-in is meant for those who would like to replace the Lazy Loading conditionnally for any reason.

1. How to use

Import the plugin and simply call it in your rollup config file into the plugins array!

IgnoreLazyLoad({
    disabled: true|false
})

2. Requirements

Your lazy loaded component should follow the exact syntax:

const MyComponent = lazy(async() => import("path to file"))

This will be turned to

import MyComponent from "path to file"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published