Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sferadev/rollup-plugin-import-cdn
https://github.com/sferadev/rollup-plugin-import-cdn
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sferadev/rollup-plugin-import-cdn
- Owner: SferaDev
- Created: 2022-04-22T09:37:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-03T08:00:53.000Z (about 1 year ago)
- Last Synced: 2024-10-09T10:54:01.049Z (about 1 month 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()],
};
```