-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[autoloading] opt into autoloading with require #5871
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
require('./modules'); | ||
require('./directives'); | ||
require('./filters'); | ||
require('./styles'); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const context = require.context('../directives', false, /[\/\\](?!\.|_)[^\/\\]+\.js/); | ||
context.keys().forEach(key => context(key)); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const context = require.context('../filters', false, /[\/\\](?!\.|_)[^\/\\]+\.js/); | ||
context.keys().forEach(key => context(key)); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
require('angular'); | ||
require('ui/chrome'); | ||
require('ui/chrome/context'); | ||
require('ui/bind'); | ||
require('ui/bound_to_config_obj'); | ||
require('ui/config'); | ||
require('ui/courier'); | ||
require('ui/debounce'); | ||
require('ui/doc_title'); | ||
require('ui/elastic_textarea'); | ||
require('ui/es'); | ||
require('ui/events'); | ||
require('ui/fancy_forms'); | ||
require('ui/filter_bar'); | ||
require('ui/filter_manager'); | ||
require('ui/index_patterns'); | ||
require('ui/listen'); | ||
require('ui/notify'); | ||
require('ui/parse_query'); | ||
require('ui/persisted_log'); | ||
require('ui/private'); | ||
require('ui/promises'); | ||
require('ui/safe_confirm'); | ||
require('ui/state_management/app_state'); | ||
require('ui/state_management/global_state'); | ||
require('ui/storage'); | ||
require('ui/stringify/register'); | ||
require('ui/styleCompile'); | ||
require('ui/timefilter'); | ||
require('ui/tooltip'); | ||
require('ui/typeahead'); | ||
require('ui/url'); | ||
require('ui/validateDateInterval'); | ||
require('ui/watch_multi'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any way to avoid the hardcoding in this file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, it's the only file that's made up of arbitrary modules which were picked with arbitrary criteria |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const context = require.context('../styles', false, /[\/\\](?!mixins|variables|_|\.)[^\/\\]+\.less/); | ||
context.keys().forEach(key => context(key)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could be changed to
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, I just don't like passing the other arguments (index and list). This feels concise enough. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice