kibana/packages/kbn-babel-preset/common_babel_parser_options.js

25 lines
761 B
JavaScript
Raw Permalink Normal View History

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
Create vendor dll for the client modules (#22618) * feat(NA): first dll bundler code. * chore(NA): upgrade to webpack 4. * chore(NA): updated package.json * chore(NA): removed old code. * chore(NA): add parallel option. * chore(NA): removed console log and old var about node modules. * chore(NA): turn off unsafe cache. * chore(NA): update lock files. * chore(NA): new config for dll generation. * chore(NA): update stats emit. * chore(NA): update dependencies. * chore(NA): right cache loaders. * chore(NA): remove ui_bundles alias. * feat(20749): init implementation on bridge plugin for dll bundler. * feat(20749): init implementation for dll compiler. * feat(20749): dll bundler init from other process and webpack wrapper.. * feat(20749): optimizer changes to integrate with dll bundler. * chore(20749): split into different processes. * refact(20749): change to single running process. * refact(NA): improvements on dll bundler plugin. * refact(NA): removing including loop on plugins. * refact(20749): only run dllReference once. * chore(20749): todo on result.request path building. * chore(NA): lock files updated. * chore(NA): avoiding dll paths being removed. * chore(NA): tests on sync generation. * chore(NA): changes on entry paths compiler. * chore(NA): different hooks tests. * chore(20749): first working version, single process, for dynamic building dll. * feat(20749): last gross features for the dynamicdllplugin. * refact(20749): string interpolation when creating the path to delete in every optimizer cycle. feat(20749): creating the DynamicDllPlugin foundations. * chore(NA): updated base optimizer run function args. * chore(20749): first working solution with vendor dll both for prod and dev. * chore(20749): useful todos on client dlls. * feat(NA): auto built blacklist for server node_modules. * refact(NA): removed unused code. * chore(NA): update all webpack and loaders stuff to last versions. * refact(NA): first refacts on clean taks related with dll. feat(NA): added clean empty folders task. * refact(NA): removed support for console logs during the build. * refact(NA): removed extra space. * refact(NA): removed extra space. * refact(NA): getDllModules function. * chore(NA): removed unsafeCache option. * feat(NA): removed unsafeCache option. * refact(NA): apply general inheritance principles to the optimizer: hooks, and init. refact(NA): merge dynamic dll plugin into the common config. refact(NA): restore old template structure - vendors.dll style is always emitted. * fix(NA): fs_optimizer run function by not returning inside async func. * fix(NA): change template anchor name from vendor to vendors. * docs(NA): added info about files were keeping when cleaning the bundles. * fix(NA): filtering elible dll modules to delete. * refact(NA): removed old dll bundler in favor on new dynamic dll plugin. * refact(NA): initial split for clean modules on dll task. * refact(NA): update new dll config model. refact(NA): update config on dynamicdllplugin. * refact(NA): major work refactor for dynamic dll plugin. * refact(NA): extract clean node modules on dll task to its own folder. * refact(NA): organize imports. * docs(NA): add docs to registerCompilerHooks function for the optimizer. * refact(NA): finished refactor for dynamic dll plugin with correct error handling for runWebpack function. * refact(NA): basic structure for clean client modules on dll task. * fix(NA): resolve path for dll manifest during cclean build tasks. * refact(NA): split webpack dll related functions to their own file for clean client modules on dll task. * refact(NA): added error handling for the clean client modules on dll task - webpack dll related functions. * docs(NA): added license header. * refact(NA): complete split out the functions from the clean modules on dll task to the code_parser file. * refact(NA): main task entries compose. * docs(NA): extend docs for the getDependenciesFromFile function. * refact(NA): final structure split for clean client node modules dll task. * fix(NA): added missing param to calculate top level dependencies. * docs(NA): completed todo description about dll location. * fix(NA): add production option to webpack config on kbn-pm. * docs(NA): extended documentation about style extraction. * refact(NA): removed extra comments. * feat(NA): env variable to force dll creation. * feat(NA): include option to define folders to keep on delete empty folders task. * refact(NA): remove unused method from dll compiler. * feat(NA): move dlls outside bundles folder and support request for /dlls from a browser perspective. * chore(NA): gitignore updated to include new dlls folder. * chore(NA): eslintignore updated. * chore(NA): removed strange file from repo. * test(NA): fix failing tests for bundles_route. * fix(NA): change paths array to path string in a server route config. * fix(NA): remove infinite loop calls on register hooks functions. * fix(NA): readFile should only override the file in case it not exists. * refact(NA): removed dll compiler finish log on success with stats. * fix(NA): dll compiler alias. * fix(NA): dynamic dll plugin flow on needs compile. * fix(NA): raw alias config. * Revert "fix(NA): raw alias config." This reverts commit ebb245a78662917787e739dce3cc61e0da0971ca. * feat(NA): raw alias for moment on dll config model. * fix(NA): removed uiBundles from base_optimizer call on dynamicdllplugin. * chore(NA): decrease moment versions. * chore(NA): temporary changes on dll compiler. * fix(NA): majority of problems between dll approach, webpackshims and browser tests. * fix(NA): webpackShims integration with client vendors dll. fix(NA): enable esm modules mutability for development. fix(NA): only clean dll contents from build when they belong to node_modules. * fix(NA): fix for endless dll compilation loop. * fix(NA): removed esm plugin and skipped test using wrong stub strategy. * docs(NA): added some comments for the skipped test. * feat(NA): considering requires inside webpackShims valid entry paths to add to the dll entry file. * fix(NA): small fix for the max compilation logic. * docs(NA): add small explanatory note. * fix(NA): building requires results with relative requires found onn webpackShims. * docs(NA): add small note for error handling on dll compiler. * fix(NA): move precinct to prod dependencies. * test(NA): testing running functional tests on production. * fix(NA): restore tests run config for development flag. feat(NA): force dll creation with uiBundles is Dev flag. * chore(NA): update dependencies. * feat(NA): test update dll to completely match base optimizer one. * fix(NA): removed ts. * refact(NA): removed unused consts. * fix(NA): set back transpile sacss task in place. * fix(NA): fix resolve remoing ts and tsx. * fix(NA): set back transpile sacss task in place. * fix(NA): removing isDevmode from mustCompileDll. * fix(NA): add search for import statements into the dependencies visitor. * fix(NA): add dll suffix to vendors resource on ui bootstrap template. * fix(NA): some configs for unrelated dll work projects. * chore(NA): upgrade canvas plugins webpack build to webpack4. * chore(NA): add shim for moment-duration-format. * chore(NA): stup moment-duration-format into the moment webpackShim. * chore(NA): setup moment-duration-format into the moment-timezone webpackShim. * fix(NA): moment and moment-timezone webpackShims * chore(NA): added moment and moment-timezone webpackShims to x-pack. fix(NA): revert changes on webpackShims for oss kibana. * fix(NA): xpack webpackshims for moment. * fix(NA): remove xpack webpakcshims for moment. * fix(NA): webpakcshims for moment. * fix(NA): remove every changes from webpackShims and xpack webpackShims. * fix(NA): fix visitors to gather server dependencies resulting from export * from and export x, 'x' from. * chore(NA): update some webpack related dependencies. * fix(NA): in the dll the plugins need to have their own dependencies. It is the same for the ones into the tests relying on test against distributable. * feat(NA): including test/plugin_functional plugins into the kbn-pm bootstrap tasks. * fix(NA): wrong built yarn lock files. * chore(NA): updated webpack related dependencies. * feat(NA): add missing color for dynamic_dll_plugin logging tag. * chore(NA): removed forgotten console.log. * chore(NA): removed forgotten dead code. * chore(NA): removed missing old comment. * docs(NA): added missing notice for 2 tools we have relied on. * refact(NA): added is to a boolean variable to keep the consistency inside the code parser strategies. * fix(NA): update notice cli to exclude search inside dlls bundles. chore(NA): update notice file. * feat(NA): use lodash matches in the code parser visitors logic. * docs(NA): updated notice file related with the code parser visitors logic.. * docs(NA): added explanation for the process that decides if we should build a new dll or not. * test(NA): added missing tests for some usefull parts of the code. * refact(NA): split registerCompileHook function into small ones. * chore(NA): uncomment scripts from tests. * feat(NA): isolate code-parser in a kbn package * fix(NA): missing relative dot into the cwd function. * chore(NA): update all inter deps to match. * fix(NA): rebuild the yarn locks and the package jsons based on master ones. * fix(NA): move babel-code-parser to the prod deps. * chore(NA): include build path instead of the base root path. * refact(NA): integrate plugin_functional test plugins with workspaces. * fix(NA): include missing license for plugin functional test plugins. * fix(NA): always write posix paths into the dll entry file in order to make the dlls compilation working on windows too. chore(NA): improve error handling into dll compiler. * fix(NA): revert wrong moved line from canvas. * fix(NA): match ts-loader version between kibana and x-pack. * fix(NA): sync dll compiler with base_optimizer. * fix(NA): exclude kbn-interpreter from the dll. * refact(NA): remove exclusion of kbn-interpretor from base_optimizer. * chore(NA): add dlls folder to the yarn kbn clean script. * fix(NA): missing utf8 input format encoding when reading a file to create the hash into the watch optimizer cahce. * refact(NA): re-engineering to the dynamic_dll_plugin logs and lifecycle. * fix(NA): update clean node modules task to search under legacy/core_plugins. * fix(NA): fix build on windows with globby on cleaning dlls for the watch optimizer cache. * docs(NA): update documentation for the clean client node modules build task. * docs(NA): added extra comment to clarify the purpose for the built entrypoints. * chore(NA): update clean client node_modules code to use posix path. * feat(NA): add support for discovering server entries over the legacy plugins and the new plugins.
2018-12-05 16:45:19 +01:00
// The @babel/parser options documentation can be found here:
// https://babeljs.io/docs/en/babel-parser#options
module.exports = {
sourceType: 'unambiguous',
plugins: [
'asyncGenerators',
'classProperties',
Bump TypeScript to v3.9 (#67666) * add babel support for export type * bump ts version to 3.9.3 * rebuild kbn-pm * bump typescript-eslint * fix error in security plugin UI * check export as works * fix app migration type * use correct test subj attribute * fix errors from the old PR * embeddable is already passed in props * explicitly define type of fetch * add some types for viz * fix fetch type p.2 * add null to allow spreading without type errors due to override * add type guard to fix type error * cast to any, since cannot assign unknown * add timestamp to known types * fix type error in fetch * fix type error. id is always defined in attibutes * declare a type * move ts-ignore to the lines with errors * declare tuple type explicitly * mute type error. cannot assign unknown * fix errors. id is always defined * fix error type * fix override errors. id is always defined * fix error. extends any doesn't work anymore * fix type error. type is always defined * env doesn't always contain values * fix type error * cast to string * add: logs is already declared in getNodeLogsUrl * state is already passed in props * fix some errors in timelion * number of fragments is always defined * 'absolute' is not just string, but value * TEMP: option is always defined * always true if cast to promise manually * both props are always defined * explicitly define returned SO type * workaround type * bump tslib to be compatible with ts v3.9 * test private property * rebuild kbn-pm * Fix ts errors for beats management * Fix type inference broken by the TS 3.9 upgrade * Fix ingest manager saved object attributes typings * Fix TS errors in cross_cluster_replication and index_management. * Fix TS error in Watcher. * roll back colorRange wrong type * fix security plugin types * TypeScript 3.9 fixes for APM * Fix ColorRange types. * fix actions & alerts errors. ByGidi * fix lists error * More APM fixes * Remove paramaterization from `removeEmpty in agent config SettingsPage component (it's only used there and doesn't need to be parameterized.) * Add option chain for case in registerTransactionDurationAlertType * Cast `overallValue` in transform_metrics_chart * Use more specific type for custom link filters * Add more option chaining for local UI filters buckets response * Remove unused parameters from routes * Fix getProjection type parameter * Use destructuring in serviceNodesLocalFiltersRoute to hide `never` error * Revert `UnionToIntersection` change in `AggregationResponseMap` Fixes #67804. * fix platform type error * Fix visualizations types. * Fix data plugin types. * bump TS version to 3.9.5 * Fix telemetry TS errors * Fix dashboard code * Adding Canvas Fixes for TS 3.9 * Fix case and security_solution types * roll back to the old export syntax. new one might cause problems in api-extractor * update docs * Fix timelion code * Fix meta * Fix types * fix type errors om ingest_manager * bump babel deps * enable private props & methods syntax * update kbn-pm dist * whitelist 0BSD license * use @babel/plugin-proposal-private-methods in default set as well * disable new babel plugins * Revert "disable new babel plugins" This reverts commit 04d959431d456a082666bf7834f129f1aafd0772. * cleanup security_solution types * Fixes type error for newer TypeScript * update docs Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co> Co-authored-by: Felix Stürmer <stuermer@weltenwort.de> Co-authored-by: CJ Cenizal <cj@cenizal.com> Co-authored-by: Larry Gregory <larry.gregory@elastic.co> Co-authored-by: Nathan L Smith <smith@nlsmith.com> Co-authored-by: Walter Rafelsberger <walter@elastic.co> Co-authored-by: Luke Elmers <luke.elmers@elastic.co> Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co> Co-authored-by: Tim Roes <tim.roes@elastic.co> Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co> Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com> Co-authored-by: FrankHassanabad <frank.hassanabad@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 10:04:09 +02:00
'classPrivateProperties',
'classPrivateMethods',
Create vendor dll for the client modules (#22618) * feat(NA): first dll bundler code. * chore(NA): upgrade to webpack 4. * chore(NA): updated package.json * chore(NA): removed old code. * chore(NA): add parallel option. * chore(NA): removed console log and old var about node modules. * chore(NA): turn off unsafe cache. * chore(NA): update lock files. * chore(NA): new config for dll generation. * chore(NA): update stats emit. * chore(NA): update dependencies. * chore(NA): right cache loaders. * chore(NA): remove ui_bundles alias. * feat(20749): init implementation on bridge plugin for dll bundler. * feat(20749): init implementation for dll compiler. * feat(20749): dll bundler init from other process and webpack wrapper.. * feat(20749): optimizer changes to integrate with dll bundler. * chore(20749): split into different processes. * refact(20749): change to single running process. * refact(NA): improvements on dll bundler plugin. * refact(NA): removing including loop on plugins. * refact(20749): only run dllReference once. * chore(20749): todo on result.request path building. * chore(NA): lock files updated. * chore(NA): avoiding dll paths being removed. * chore(NA): tests on sync generation. * chore(NA): changes on entry paths compiler. * chore(NA): different hooks tests. * chore(20749): first working version, single process, for dynamic building dll. * feat(20749): last gross features for the dynamicdllplugin. * refact(20749): string interpolation when creating the path to delete in every optimizer cycle. feat(20749): creating the DynamicDllPlugin foundations. * chore(NA): updated base optimizer run function args. * chore(20749): first working solution with vendor dll both for prod and dev. * chore(20749): useful todos on client dlls. * feat(NA): auto built blacklist for server node_modules. * refact(NA): removed unused code. * chore(NA): update all webpack and loaders stuff to last versions. * refact(NA): first refacts on clean taks related with dll. feat(NA): added clean empty folders task. * refact(NA): removed support for console logs during the build. * refact(NA): removed extra space. * refact(NA): removed extra space. * refact(NA): getDllModules function. * chore(NA): removed unsafeCache option. * feat(NA): removed unsafeCache option. * refact(NA): apply general inheritance principles to the optimizer: hooks, and init. refact(NA): merge dynamic dll plugin into the common config. refact(NA): restore old template structure - vendors.dll style is always emitted. * fix(NA): fs_optimizer run function by not returning inside async func. * fix(NA): change template anchor name from vendor to vendors. * docs(NA): added info about files were keeping when cleaning the bundles. * fix(NA): filtering elible dll modules to delete. * refact(NA): removed old dll bundler in favor on new dynamic dll plugin. * refact(NA): initial split for clean modules on dll task. * refact(NA): update new dll config model. refact(NA): update config on dynamicdllplugin. * refact(NA): major work refactor for dynamic dll plugin. * refact(NA): extract clean node modules on dll task to its own folder. * refact(NA): organize imports. * docs(NA): add docs to registerCompilerHooks function for the optimizer. * refact(NA): finished refactor for dynamic dll plugin with correct error handling for runWebpack function. * refact(NA): basic structure for clean client modules on dll task. * fix(NA): resolve path for dll manifest during cclean build tasks. * refact(NA): split webpack dll related functions to their own file for clean client modules on dll task. * refact(NA): added error handling for the clean client modules on dll task - webpack dll related functions. * docs(NA): added license header. * refact(NA): complete split out the functions from the clean modules on dll task to the code_parser file. * refact(NA): main task entries compose. * docs(NA): extend docs for the getDependenciesFromFile function. * refact(NA): final structure split for clean client node modules dll task. * fix(NA): added missing param to calculate top level dependencies. * docs(NA): completed todo description about dll location. * fix(NA): add production option to webpack config on kbn-pm. * docs(NA): extended documentation about style extraction. * refact(NA): removed extra comments. * feat(NA): env variable to force dll creation. * feat(NA): include option to define folders to keep on delete empty folders task. * refact(NA): remove unused method from dll compiler. * feat(NA): move dlls outside bundles folder and support request for /dlls from a browser perspective. * chore(NA): gitignore updated to include new dlls folder. * chore(NA): eslintignore updated. * chore(NA): removed strange file from repo. * test(NA): fix failing tests for bundles_route. * fix(NA): change paths array to path string in a server route config. * fix(NA): remove infinite loop calls on register hooks functions. * fix(NA): readFile should only override the file in case it not exists. * refact(NA): removed dll compiler finish log on success with stats. * fix(NA): dll compiler alias. * fix(NA): dynamic dll plugin flow on needs compile. * fix(NA): raw alias config. * Revert "fix(NA): raw alias config." This reverts commit ebb245a78662917787e739dce3cc61e0da0971ca. * feat(NA): raw alias for moment on dll config model. * fix(NA): removed uiBundles from base_optimizer call on dynamicdllplugin. * chore(NA): decrease moment versions. * chore(NA): temporary changes on dll compiler. * fix(NA): majority of problems between dll approach, webpackshims and browser tests. * fix(NA): webpackShims integration with client vendors dll. fix(NA): enable esm modules mutability for development. fix(NA): only clean dll contents from build when they belong to node_modules. * fix(NA): fix for endless dll compilation loop. * fix(NA): removed esm plugin and skipped test using wrong stub strategy. * docs(NA): added some comments for the skipped test. * feat(NA): considering requires inside webpackShims valid entry paths to add to the dll entry file. * fix(NA): small fix for the max compilation logic. * docs(NA): add small explanatory note. * fix(NA): building requires results with relative requires found onn webpackShims. * docs(NA): add small note for error handling on dll compiler. * fix(NA): move precinct to prod dependencies. * test(NA): testing running functional tests on production. * fix(NA): restore tests run config for development flag. feat(NA): force dll creation with uiBundles is Dev flag. * chore(NA): update dependencies. * feat(NA): test update dll to completely match base optimizer one. * fix(NA): removed ts. * refact(NA): removed unused consts. * fix(NA): set back transpile sacss task in place. * fix(NA): fix resolve remoing ts and tsx. * fix(NA): set back transpile sacss task in place. * fix(NA): removing isDevmode from mustCompileDll. * fix(NA): add search for import statements into the dependencies visitor. * fix(NA): add dll suffix to vendors resource on ui bootstrap template. * fix(NA): some configs for unrelated dll work projects. * chore(NA): upgrade canvas plugins webpack build to webpack4. * chore(NA): add shim for moment-duration-format. * chore(NA): stup moment-duration-format into the moment webpackShim. * chore(NA): setup moment-duration-format into the moment-timezone webpackShim. * fix(NA): moment and moment-timezone webpackShims * chore(NA): added moment and moment-timezone webpackShims to x-pack. fix(NA): revert changes on webpackShims for oss kibana. * fix(NA): xpack webpackshims for moment. * fix(NA): remove xpack webpakcshims for moment. * fix(NA): webpakcshims for moment. * fix(NA): remove every changes from webpackShims and xpack webpackShims. * fix(NA): fix visitors to gather server dependencies resulting from export * from and export x, 'x' from. * chore(NA): update some webpack related dependencies. * fix(NA): in the dll the plugins need to have their own dependencies. It is the same for the ones into the tests relying on test against distributable. * feat(NA): including test/plugin_functional plugins into the kbn-pm bootstrap tasks. * fix(NA): wrong built yarn lock files. * chore(NA): updated webpack related dependencies. * feat(NA): add missing color for dynamic_dll_plugin logging tag. * chore(NA): removed forgotten console.log. * chore(NA): removed forgotten dead code. * chore(NA): removed missing old comment. * docs(NA): added missing notice for 2 tools we have relied on. * refact(NA): added is to a boolean variable to keep the consistency inside the code parser strategies. * fix(NA): update notice cli to exclude search inside dlls bundles. chore(NA): update notice file. * feat(NA): use lodash matches in the code parser visitors logic. * docs(NA): updated notice file related with the code parser visitors logic.. * docs(NA): added explanation for the process that decides if we should build a new dll or not. * test(NA): added missing tests for some usefull parts of the code. * refact(NA): split registerCompileHook function into small ones. * chore(NA): uncomment scripts from tests. * feat(NA): isolate code-parser in a kbn package * fix(NA): missing relative dot into the cwd function. * chore(NA): update all inter deps to match. * fix(NA): rebuild the yarn locks and the package jsons based on master ones. * fix(NA): move babel-code-parser to the prod deps. * chore(NA): include build path instead of the base root path. * refact(NA): integrate plugin_functional test plugins with workspaces. * fix(NA): include missing license for plugin functional test plugins. * fix(NA): always write posix paths into the dll entry file in order to make the dlls compilation working on windows too. chore(NA): improve error handling into dll compiler. * fix(NA): revert wrong moved line from canvas. * fix(NA): match ts-loader version between kibana and x-pack. * fix(NA): sync dll compiler with base_optimizer. * fix(NA): exclude kbn-interpreter from the dll. * refact(NA): remove exclusion of kbn-interpretor from base_optimizer. * chore(NA): add dlls folder to the yarn kbn clean script. * fix(NA): missing utf8 input format encoding when reading a file to create the hash into the watch optimizer cahce. * refact(NA): re-engineering to the dynamic_dll_plugin logs and lifecycle. * fix(NA): update clean node modules task to search under legacy/core_plugins. * fix(NA): fix build on windows with globby on cleaning dlls for the watch optimizer cache. * docs(NA): update documentation for the clean client node modules build task. * docs(NA): added extra comment to clarify the purpose for the built entrypoints. * chore(NA): update clean client node_modules code to use posix path. * feat(NA): add support for discovering server entries over the legacy plugins and the new plugins.
2018-12-05 16:45:19 +01:00
'dynamicImport',
'exportDefaultFrom',
'exportNamespaceFrom',
'objectRestSpread',
2019-12-13 23:44:04 +01:00
'throwExpressions',
Create vendor dll for the client modules (#22618) * feat(NA): first dll bundler code. * chore(NA): upgrade to webpack 4. * chore(NA): updated package.json * chore(NA): removed old code. * chore(NA): add parallel option. * chore(NA): removed console log and old var about node modules. * chore(NA): turn off unsafe cache. * chore(NA): update lock files. * chore(NA): new config for dll generation. * chore(NA): update stats emit. * chore(NA): update dependencies. * chore(NA): right cache loaders. * chore(NA): remove ui_bundles alias. * feat(20749): init implementation on bridge plugin for dll bundler. * feat(20749): init implementation for dll compiler. * feat(20749): dll bundler init from other process and webpack wrapper.. * feat(20749): optimizer changes to integrate with dll bundler. * chore(20749): split into different processes. * refact(20749): change to single running process. * refact(NA): improvements on dll bundler plugin. * refact(NA): removing including loop on plugins. * refact(20749): only run dllReference once. * chore(20749): todo on result.request path building. * chore(NA): lock files updated. * chore(NA): avoiding dll paths being removed. * chore(NA): tests on sync generation. * chore(NA): changes on entry paths compiler. * chore(NA): different hooks tests. * chore(20749): first working version, single process, for dynamic building dll. * feat(20749): last gross features for the dynamicdllplugin. * refact(20749): string interpolation when creating the path to delete in every optimizer cycle. feat(20749): creating the DynamicDllPlugin foundations. * chore(NA): updated base optimizer run function args. * chore(20749): first working solution with vendor dll both for prod and dev. * chore(20749): useful todos on client dlls. * feat(NA): auto built blacklist for server node_modules. * refact(NA): removed unused code. * chore(NA): update all webpack and loaders stuff to last versions. * refact(NA): first refacts on clean taks related with dll. feat(NA): added clean empty folders task. * refact(NA): removed support for console logs during the build. * refact(NA): removed extra space. * refact(NA): removed extra space. * refact(NA): getDllModules function. * chore(NA): removed unsafeCache option. * feat(NA): removed unsafeCache option. * refact(NA): apply general inheritance principles to the optimizer: hooks, and init. refact(NA): merge dynamic dll plugin into the common config. refact(NA): restore old template structure - vendors.dll style is always emitted. * fix(NA): fs_optimizer run function by not returning inside async func. * fix(NA): change template anchor name from vendor to vendors. * docs(NA): added info about files were keeping when cleaning the bundles. * fix(NA): filtering elible dll modules to delete. * refact(NA): removed old dll bundler in favor on new dynamic dll plugin. * refact(NA): initial split for clean modules on dll task. * refact(NA): update new dll config model. refact(NA): update config on dynamicdllplugin. * refact(NA): major work refactor for dynamic dll plugin. * refact(NA): extract clean node modules on dll task to its own folder. * refact(NA): organize imports. * docs(NA): add docs to registerCompilerHooks function for the optimizer. * refact(NA): finished refactor for dynamic dll plugin with correct error handling for runWebpack function. * refact(NA): basic structure for clean client modules on dll task. * fix(NA): resolve path for dll manifest during cclean build tasks. * refact(NA): split webpack dll related functions to their own file for clean client modules on dll task. * refact(NA): added error handling for the clean client modules on dll task - webpack dll related functions. * docs(NA): added license header. * refact(NA): complete split out the functions from the clean modules on dll task to the code_parser file. * refact(NA): main task entries compose. * docs(NA): extend docs for the getDependenciesFromFile function. * refact(NA): final structure split for clean client node modules dll task. * fix(NA): added missing param to calculate top level dependencies. * docs(NA): completed todo description about dll location. * fix(NA): add production option to webpack config on kbn-pm. * docs(NA): extended documentation about style extraction. * refact(NA): removed extra comments. * feat(NA): env variable to force dll creation. * feat(NA): include option to define folders to keep on delete empty folders task. * refact(NA): remove unused method from dll compiler. * feat(NA): move dlls outside bundles folder and support request for /dlls from a browser perspective. * chore(NA): gitignore updated to include new dlls folder. * chore(NA): eslintignore updated. * chore(NA): removed strange file from repo. * test(NA): fix failing tests for bundles_route. * fix(NA): change paths array to path string in a server route config. * fix(NA): remove infinite loop calls on register hooks functions. * fix(NA): readFile should only override the file in case it not exists. * refact(NA): removed dll compiler finish log on success with stats. * fix(NA): dll compiler alias. * fix(NA): dynamic dll plugin flow on needs compile. * fix(NA): raw alias config. * Revert "fix(NA): raw alias config." This reverts commit ebb245a78662917787e739dce3cc61e0da0971ca. * feat(NA): raw alias for moment on dll config model. * fix(NA): removed uiBundles from base_optimizer call on dynamicdllplugin. * chore(NA): decrease moment versions. * chore(NA): temporary changes on dll compiler. * fix(NA): majority of problems between dll approach, webpackshims and browser tests. * fix(NA): webpackShims integration with client vendors dll. fix(NA): enable esm modules mutability for development. fix(NA): only clean dll contents from build when they belong to node_modules. * fix(NA): fix for endless dll compilation loop. * fix(NA): removed esm plugin and skipped test using wrong stub strategy. * docs(NA): added some comments for the skipped test. * feat(NA): considering requires inside webpackShims valid entry paths to add to the dll entry file. * fix(NA): small fix for the max compilation logic. * docs(NA): add small explanatory note. * fix(NA): building requires results with relative requires found onn webpackShims. * docs(NA): add small note for error handling on dll compiler. * fix(NA): move precinct to prod dependencies. * test(NA): testing running functional tests on production. * fix(NA): restore tests run config for development flag. feat(NA): force dll creation with uiBundles is Dev flag. * chore(NA): update dependencies. * feat(NA): test update dll to completely match base optimizer one. * fix(NA): removed ts. * refact(NA): removed unused consts. * fix(NA): set back transpile sacss task in place. * fix(NA): fix resolve remoing ts and tsx. * fix(NA): set back transpile sacss task in place. * fix(NA): removing isDevmode from mustCompileDll. * fix(NA): add search for import statements into the dependencies visitor. * fix(NA): add dll suffix to vendors resource on ui bootstrap template. * fix(NA): some configs for unrelated dll work projects. * chore(NA): upgrade canvas plugins webpack build to webpack4. * chore(NA): add shim for moment-duration-format. * chore(NA): stup moment-duration-format into the moment webpackShim. * chore(NA): setup moment-duration-format into the moment-timezone webpackShim. * fix(NA): moment and moment-timezone webpackShims * chore(NA): added moment and moment-timezone webpackShims to x-pack. fix(NA): revert changes on webpackShims for oss kibana. * fix(NA): xpack webpackshims for moment. * fix(NA): remove xpack webpakcshims for moment. * fix(NA): webpakcshims for moment. * fix(NA): remove every changes from webpackShims and xpack webpackShims. * fix(NA): fix visitors to gather server dependencies resulting from export * from and export x, 'x' from. * chore(NA): update some webpack related dependencies. * fix(NA): in the dll the plugins need to have their own dependencies. It is the same for the ones into the tests relying on test against distributable. * feat(NA): including test/plugin_functional plugins into the kbn-pm bootstrap tasks. * fix(NA): wrong built yarn lock files. * chore(NA): updated webpack related dependencies. * feat(NA): add missing color for dynamic_dll_plugin logging tag. * chore(NA): removed forgotten console.log. * chore(NA): removed forgotten dead code. * chore(NA): removed missing old comment. * docs(NA): added missing notice for 2 tools we have relied on. * refact(NA): added is to a boolean variable to keep the consistency inside the code parser strategies. * fix(NA): update notice cli to exclude search inside dlls bundles. chore(NA): update notice file. * feat(NA): use lodash matches in the code parser visitors logic. * docs(NA): updated notice file related with the code parser visitors logic.. * docs(NA): added explanation for the process that decides if we should build a new dll or not. * test(NA): added missing tests for some usefull parts of the code. * refact(NA): split registerCompileHook function into small ones. * chore(NA): uncomment scripts from tests. * feat(NA): isolate code-parser in a kbn package * fix(NA): missing relative dot into the cwd function. * chore(NA): update all inter deps to match. * fix(NA): rebuild the yarn locks and the package jsons based on master ones. * fix(NA): move babel-code-parser to the prod deps. * chore(NA): include build path instead of the base root path. * refact(NA): integrate plugin_functional test plugins with workspaces. * fix(NA): include missing license for plugin functional test plugins. * fix(NA): always write posix paths into the dll entry file in order to make the dlls compilation working on windows too. chore(NA): improve error handling into dll compiler. * fix(NA): revert wrong moved line from canvas. * fix(NA): match ts-loader version between kibana and x-pack. * fix(NA): sync dll compiler with base_optimizer. * fix(NA): exclude kbn-interpreter from the dll. * refact(NA): remove exclusion of kbn-interpretor from base_optimizer. * chore(NA): add dlls folder to the yarn kbn clean script. * fix(NA): missing utf8 input format encoding when reading a file to create the hash into the watch optimizer cahce. * refact(NA): re-engineering to the dynamic_dll_plugin logs and lifecycle. * fix(NA): update clean node modules task to search under legacy/core_plugins. * fix(NA): fix build on windows with globby on cleaning dlls for the watch optimizer cache. * docs(NA): update documentation for the clean client node modules build task. * docs(NA): added extra comment to clarify the purpose for the built entrypoints. * chore(NA): update clean client node_modules code to use posix path. * feat(NA): add support for discovering server entries over the legacy plugins and the new plugins.
2018-12-05 16:45:19 +01:00
],
};