rollup-plugin-object-exists

1.0.4 • Public • Published

rollup-plugin-object-exists

Rollup plugin to check if objects exist in your bundle with a specified name.

Install

yarn add rollup-plugin-object-exists --dev
(p)npm i rollup-plugin-object-exists --save-dev

Usage

import { rollup } from "rollup";
import objectExists from "rollup-plugin-object-exists";

rollup({
  input: "file.js",
  plugins: [
      objectExists(["objectName", "otherObjectName"], (found) => {
        for (let obj of found) {
          console.log(obj)
        }
      }),
    ]
})

Readme

Keywords

none

Package Sidebar

Install

npm i rollup-plugin-object-exists

Weekly Downloads

0

Version

1.0.4

License

CC0-1.0

Unpacked Size

30.7 kB

Total Files

7

Last publish

Collaborators

  • cr3atable