Skip to content

SferaDev/rollup-plugin-import-cdn

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published