rollup-runtime

0.0.9 • Public • Published

rollup-runtime

rollup-runtime is a module loader for rollup dist. support amd systemjs and esm.

Why not native esm

  • dynamic import polyfill;
  • module,css,asset preload;

Those feature is a module rollup-runtime base on esm.

Use

__rollup_dynamic_import__(src:string, base:string, deps:string[], css:string[], img:string[]):Promise<any>

With Polyfill

ie 6-8

Array.isArray
Array.prototype.findIndex
Array.prototype.forEach
Array.prototype.indexOf
Array.prototype.map
Array.prototype.some
Object.create
Object.defineProperty
Promise
Promise.prototype.finally
String.prototype.startsWith
URL
URLSearchParams
console
document.head
queueMicrotask

other unsupport esm

Array.isArray
Array.prototype.findIndex
Object.create
Object.defineProperties
Object.defineProperty
Object.keys
Promise
Promise.prototype.finally
String.prototype.startsWith
String.prototype.trim
URL
URLSearchParams
console
document.currentScript
document.head
document.scripts
location
queueMicrotask

Readme

Keywords

Package Sidebar

Install

npm i rollup-runtime

Weekly Downloads

5

Version

0.0.9

License

MIT

Unpacked Size

117 kB

Total Files

8

Last publish

Collaborators

  • linsk