Skip to content

Commit

Permalink
Add exception to transpile normalize-url mode to es5 when bundled int…
Browse files Browse the repository at this point in the history
…o the DLL (elastic#35804)

* chore(NA): add resolution to prevent unsupported normalize-url path.

* chore(NA): resolutions for create package json task.

* chore(NA): extend dll compiler config with normalize url module.

* chore(NA): add exclusion for normalize-url node_modules.
  • Loading branch information
mistic committed May 2, 2019
1 parent 0a64e83 commit 5470ff1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/optimize/dynamic_dll_plugin/dll_config_model.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ function generateDLL(config) {
test: /\.js$/,
include: /[\/\\]node_modules[\/\\]x-pack[\/\\]/,
exclude: /[\/\\]node_modules[\/\\]x-pack[\/\\](.+?[\/\\])*node_modules[\/\\]/,
},
// TODO: remove when we drop support for IE11
// We need because normalize-url is distributed without
// any kind of transpilation
// More info: https://github.com/elastic/kibana/pull/35804
{
test: /\.js$/,
include: /[\/\\]node_modules[\/\\]normalize-url[\/\\]/,
exclude: /[\/\\]node_modules[\/\\]normalize-url[\/\\](.+?[\/\\])*node_modules[\/\\]/,
}
],
// Self calling function with the equivalent logic
Expand Down

0 comments on commit 5470ff1

Please sign in to comment.