@bvanderplanck/rollup-plugin-react-remove-lazy-loading
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

@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"

Package Sidebar

Install

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

Weekly Downloads

2

Version

1.2.0

License

none

Unpacked Size

1.98 kB

Total Files

4

Last publish

Collaborators

  • bvanderplanck