https://github.com/sferadev/rollup-plugin-import-cdn
https://github.com/sferadev/rollup-plugin-import-cdn
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sferadev/rollup-plugin-import-cdn
- Owner: SferaDev
- Created: 2022-04-22T09:37:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-03T08:00:53.000Z (over 2 years ago)
- Last Synced: 2025-07-11T07:25:38.577Z (11 months ago)
- Language: TypeScript
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```js
import { importCdn } from "rollup-plugin-import-cdn";
export default {
plugins: [importCdn()],
};
```