一覧へ戻る
thgh/rollup-plugin-url-import(新しいタブで開きます)
主要言語: JavaScript
Resolve URL imports just like Deno
- star 数
- 3
- watcher 数
- 1
- fork 数
- 1
- issue 数
- 1
- 最終更新
- 2019/04/14
主要言語: JavaScript
Resolve URL imports just like Deno
npm install --save-dev rollup-plugin-url-import
// rollup.config.js import urlImport from 'rollup-plugin-url-import' export default { input: 'input.js', output: { file: 'output.js', format: 'esm' }, plugins: [ urlImport() ] }
// input.js import 'https://deno.land/thumb.ts' import leftPad from 'https://dev.jspm.io/left-pad' console.log(leftPad('test', 8))
The cache option is not yet implemented.
urlImport({ // Cache fetched modules (default: false) cache: true, // Cache fetched modules in specified folder cache: '~/.deno/deps', // Enable output of fetched urls (default: false) verbose: true, // Fetch named modules from jspm.io (default: false) jspm: true })
Please see CHANGELOG for more information what has changed recently.
Contributions and feedback are very welcome.
To get it running:
npm installnpm run buildnpm run testThe MIT License (MIT). Please see License File for more information.