Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 405 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 405 Bytes

rollup-plugin-import-cdn

Import ESM modules from URL for local use and be processed by rollup, allowing to apply tree-shaking on non-local resources.

Code based from https://github.com/UpperCod/rollup-plugin-import-url

Install

npm install rollup-plugin-import-cdn

Usage

import { importCdn } from "rollup-plugin-import-cdn";

export default {
    plugins: [importCdn()],
};