]> source.dussan.org Git - gitea.git/commit
fix webpack polyfills (#9735)
authorsilverwind <me@silverwind.io>
Sun, 12 Jan 2020 20:53:12 +0000 (21:53 +0100)
committerAntoine GIRARD <sapk@users.noreply.github.com>
Sun, 12 Jan 2020 20:53:12 +0000 (21:53 +0100)
commita3977a3e51417ddda8f0e7fde97b4e29d2d224f7
treee1e49949254c9ce94bfb029c58c484b402daf5d3
parent74e35aae111a388d4f36c3d2ad1ae611af718276
fix webpack polyfills (#9735)

webpack polyfills did not work because useBuiltIns: 'entry' expects a
explicit core-js import. Changed it to 'usage' which does not require
these explicit imports and polyfills based on browserslist.

As a result, the built index.js now went from 128kB to 192kB.

Ref: https://babeljs.io/docs/en/babel-preset-env#usebuiltins

Co-authored-by: zeripath <art27@cantab.net>
webpack.config.js