rollup-plugin-web-imports
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

rollup-plugin-web-imports

A Rollup plugin to replace import specifiers.

Install

npm install rollup-plugin-web-imports --save-dev

Usage

import webImports from `rollup-plugin-web-imports`

export default {
  input: 'src/index.js',
  output: {
    dir: 'dist',
    format: 'cjs'
  },
  plugins: [
    webImports({
      react: "./react.js",
      "react-dom": "./react-dom.js",
      "@material-ui/core": "./@material-ui/core.js",
    })
  ]
};

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i rollup-plugin-web-imports

    Weekly Downloads

    1

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    7.34 kB

    Total Files

    12

    Last publish

    Collaborators

    • jlkiri