一覧へ戻る
jspm/rollup-plugin-jspm(新しいタブで開きます)
主要言語: JavaScript
JSPM Standards-Based RollupJS Preset
- star 数
- 13
- watcher 数
- 2
- fork 数
- 6
- issue 数
- 1
- 最終更新
- 2024/10/15
主要言語: JavaScript
JSPM Standards-Based RollupJS Preset
Standards-based JSPM Rollup plugin, including:
npm install @jspm/plugin-rollup rollup --save-dev
rollup.config.js
import jspmRollup from '@jspm/plugin-rollup'; const baseUrl = new URL('./components', import.meta.url); export default { // Important to use "./" here to indicate a local path // and not a package. Resolved to baseUrl below. input: './main.js', plugins: [ jspmRollup({ baseUrl, // Generator options as per @jspm/generator defaultProvider: 'nodemodules', env: ['browser'], // map of externals to aliased or true externals: { react: 'custom-react' } }) ] }
rollup -c