Bili makes it easier to bundle JavaScript libraries.
MIT License
Bot releases are hidden (Show)
Published by egoist over 5 years ago
Migration guide:
We are now using rollup-plugin-babel and babel v7 by default.
You can switch back to Buble via --js buble
flag.
rollup-plugin-typescript2
when entry file ending with .ts
(you need to install rollup-plugin-typescript2
first)target
option, see: https://egoist.moe/bili/#/api?id=target
Published by egoist over 6 years ago
.m.js
is renamed to .es.js
umd
and iife
format, env.NODE_ENV
will default to development
when uncompressed or production
when compressed.Published by egoist almost 7 years ago
process.env.NODE_ENV
in umd
iife
bundle, it defaults to development
in umd
iife
bundles and production
in umd-min
iife-min
bundles.Published by egoist almost 7 years ago
format
and input
.--inspectRollup
option to inspect Rollup options.Published by egoist almost 7 years ago
pkg.name
, since we now support multi entry files, the default value of filename is [name][suffix].js
.js: 'babel'
or use CLI flag --js babel
.async/await
flow
in Buble..vue
.css
supportFor more details check out the new API page.
Published by egoist over 7 years ago
compress: true
now it compresses for all formats (excluding es
format), it can be string or Array too like: compress: 'cjs,umd'
or compress: ['cjs', 'umd']
, see: https://egoist.moe/bili/#/api?id=compress
name
option is renamed to filename
.