0.2.0 • Published 4 years ago

rollup-plugin-web-imports v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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",
    })
  ]
};
0.2.0

4 years ago

0.1.0

4 years ago