Skip to content

UpperCod/rollup-plugin-import-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-import-url

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

If the module to be imported has local dependencies, these dependencies will be used.

Example

export { h } from "https://unpkg.com/atomico";
import { h } from "https://unpkg.com/atomico";

console.log(h);

Install

npm install rollup-plugin-import-url

Usage

import importUrl from "rollup-plugin-import-url";

export default {
    input: "http://localhost:8080",
    plugins: [importUrl()],
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published