egoist / bili

Bili makes it easier to bundle JavaScript libraries.

Home Page:https://bili.egoist.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot set `format` via `bili.config.js`

ulivz opened this issue · comments

commented

Step to reproduce

// bili.config.js
module.exports = {
  output: {
    moduleName: 'checkDowngrade',
    fileName: 'checkDowngrade.[format][min].js'
  },
  format: [
    'esm',
    'umd',
    'cjs',
    'cjs-min',
  ]
};

Buiild output:

image

output.format, you can use bili.config.ts to prevent from using unknown options: https://bili.egoist.sh/#/configuration-file#typescript

commented

Cool~