1.0.0 • Published 4 months ago

@blockquote/rollup-plugin-externalize-source-dependencies v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

rollup-plugin-total-bundlesize

A Rollup plugin that allows for the replacement of dependencies with external dependencies without requiring users to manually mark them as external through the 'external' option.

Installation

npm install @blockquote/rollup-plugin-externalize-source-dependencies

Usage

import externalizeSourceDependencies from '@blockquote/rollup-plugin-externalize-source-dependencies';

export default {
  entry: 'index.js',
  plugins: [
    externalizeSourceDependencies([
      /* @web/test-runner-commands needs to establish a web-socket
       * connection. It expects a file to be served from the
       * @web/dev-server. So it should be ignored by Vite */
      '/__web-dev-server__web-socket.js',
    ]),
  ],
};

License

MIT