Kibana 7.2.0 source code import path problem

Hi,
I am studying Kibana source code.
I encounter a confusing problem about import path problem.
the source file link is https://github.com/elastic/kibana/blob/7.2/src/legacy/core_plugins/kibana/public/management/index.js
import { management, SidebarNav, MANAGEMENT_BREADCRUMB } from 'ui/management';

But I can find the ui folder in the relative path and the node_modules folder.
Why

Hi @tony21177,

The ui/* is just an alias to another folder, e.g. see here where it points to.

Best,
Oleg

Hi,azasypkin
I find ui_export_defaults.js


line 30

does the import has to do with the webpack alias setting?

By the way, I look up from the webpack documents for import path explanation of Webpack

Thank you so much!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.