Commit Graph

15 Commits

Author SHA1 Message Date
Tim Lai
3f4db5f474 refactor(build): increase maxEntrypointSize for core-js@3 (#6419) 2020-09-18 11:21:28 -07:00
Tim Lai
0d63e70c8e chore: remove unused deprecated polyfill.js file (#6345)
* config(dev): remove unused polyfills in webpack-dev
2020-08-27 12:19:57 -07:00
Tim Lai
20b32d8b90 fix(build): css stylesheets bundle config and deps (#6315) 2020-08-18 16:05:31 -07:00
Tim Lai
d521b8c5b1 build: change globalObject to "this" for es bundles (#6301) 2020-08-14 11:10:27 -07:00
Pontus Wallberg
d0ae61f8c9 change globalObject to "this" (#6287)
Co-authored-by: Pontus Wallberg <pontus.wallberg@configura.com>
2020-08-14 10:47:32 -07:00
Tim Lai
2eaa6c10e4 feat(build): es2015 bundle artifact (#6291)
* es2015 bundle with dependencies via npm script build:es:bundle
* es2015 bundle without dependencies via npm script build:es:bundle
* jest dependency for test:artifact
* migrate babel.config.json to babel.config.js and maintain env support for commonjs and es2015
* remove polyfill
* fix es syntax: replace module.exports with export
* fix es syntax: remove .jsx extension inside import
2020-08-13 17:21:55 -07:00
Timothy Lai
ea5b64bca3 build(webpack): remove LodashModuleReplacementPlugin 2020-07-22 12:40:30 -07:00
Tim Lai
60b411e8c0 build(webpack): enable lodash options (#6248) 2020-07-21 10:49:13 -07:00
Tim Lai
d12662e354 build(webpack): bundle size optimization for lodash (#6244)
* add duplicate code detection check for general purpose use
* webpack alias for lodash
* redux and react-redux dependency bump that removes lodash dependencies
* lodash version match with swagger-client and recent security update
* additional webpack config to help reduce build sizes
* restore max bundle size back to 1024000
2020-07-20 20:26:56 -07:00
Tim Lai
a73783b73d feat: syntax highlighting of code section (#6236)
Co-authored-by: AdrieanKhisbe <adriean.khisbe@live.fr>
2020-07-17 15:29:15 -07:00
Tim Lai
251ea10d94 config: increase max bundle size to 1024 KiB (#6231) 2020-07-16 19:19:21 -07:00
Vladimir Gorej
4f2e8ad7d1 build(webpack): move resolve alises to one common place
As resolving applies to everything and not just specific builds
the resolve.aliases have been moved to one common place.
2020-07-04 11:26:17 +02:00
Vladimir Gorej
c30760cfe5 build(webpack): make sure we're not bundling same deps twice
As versions of libraries that are both used by swagger-js and swagger-ui
may diverge in time, we must use webpack resolve aliases to make sure
that only one version of these libraries gets bundled.
2020-06-29 14:19:38 +02:00
kyle
2af696dcc1 housekeeping: @kyleshockey/js-yaml -> js-yaml (via #5511)
* `@kyleshockey/js-yaml` -> `js-yaml`

* externalize `esprima`
2019-07-31 14:45:18 -07:00
kyle
88204daad8 housekeeping: upgrade to webpack@4 (via #5454)
* build new core webpack config

* fix exports in Webpack; use ESM syntax throughout

* add bundle config

* add standalone config

* add style config

* prettier...

* add dev config

* delete legacy webpack scripts

* rewire npm scripts to use new webpack configs

* cache babel-loader results

* fix e2e dev servers

* update core Webpack modules

* update loaders to latest

* remove unused loaders

* update Webpack plugins

* add mode flags to Webpack configs

* remove plugin invocations that are now production-standard in v4

* update webpack-cli

* add webpack perf size limit flags

* replace ExtractText with MiniCssExtract + IgnoreAssets

* UglifyJsPlugin -> TerserPlugin

* fix PostCSS processing

* enable Terser sourcemaps

* webpack/style -> webpack/stylesheets
2019-07-11 18:57:44 -05:00