Commit graph

5 commits

Author SHA1 Message Date
Spencer
4a5ba237df
[6.x] Upgrade to webpack 3 (#14315) (#14824)
* [timelion] remove last remaining amd modules

* [eslint-config-kibana] remove env.amd

* [webpack] use absolute loader names

* [webpack] remove absolute node_modules/ imports

* [webpack] upgrade to webpack 3

* [uiFramework] make webpack build compatible with v3

* [eslint-import-resolver] use https://github.com/elastic/eslint-import-resolver-kibana/pull/21

* [baseOptimizer] don't break when pkg has no dependencies

* [optimize] remove unnecessary json-loader

* [optimize] remove local references to webpack vars

* [eslint] upgrade to eslint-import-resolver-kibana 0.9.0

* [baseOptimizer] comment tweaks

* [baseOptimizer] remove loader pinning

In webpack 1 the loaders defined here were resolved relative to the file they were going to load, which meant that plugins in other projects could accidentally overwrite the loaders Kibana was trying to use, which is why the aliases were used to enforce proper resolution.

In webpack 2 loaders are now resolved relative to the webpackConfig.context, which is set to the root of the Kibana repo. See https://webpack.js.org/configuration/module/#useentry

* [webpack] rely on kibana webpack shims before checking node_modules

(cherry picked from commit f60639fccb)
2017-11-07 15:54:48 -07:00
Spencer
fab90fab59 Refactor commaList filter logic into common util (#12553)
* [utils] extract _.commaSeparatedList mixin to common utils

* [utils] test current version of parseCommaSeparatedList()

* [utils] remove mutation in parseCommaSeparatedList()

* [utils] extract commaList filter to util

* [utils] add tests for formatListAsProse()

* [utils] refactor formatListAsProse(), add oxford comma

* [commaList] add oxford comma to commaList output

* [utils/prose] remove pointless condition

* address PR feedback

* 💥 the stringification thingy
2017-06-29 12:00:27 -07:00
Brandon Kobel
f72e7269dc Removing the destructuring and const from webpackShims (#11370) 2017-04-21 15:48:10 -04:00
Stacey Gammon
9c37e6c4c1 Remaining default to named conversions in ui/public (#11323)
* use named ui-modules

* x-pack conversion is checked in so no need for the default uiModules export

* Final removal of all export default in ui/public

And turned on the eslint rule for that folder.

* Moe import to top of file
2017-04-20 14:10:06 -04:00
spalger
e1b395004c [webpackShims] support contextual module overrides in the webpack build 2015-08-17 23:23:26 -07:00
Renamed from src/plugins/bundledLibs/metaLibs/lodash.js (Browse further)