You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that it is time that we start considering setting NODE_PATH to set a specific folder as the source of truth for loading modules, beyond the node_modules folder.
The aim is to the have the following (example)
before
importpathsfrom'../../../utils/paths'
after
importpathsfrom'core/utils/paths'
The text was updated successfully, but these errors were encountered:
I've been thinking of this and perhaps using webpack's resolve.root or resolve.moduleDirectories would work. An idea would be using the package name dext for absolute imports.
Otherwise, we can split it based on the Electron process (main/renderer)
// source: app/main/themesimportthemesfrom'dext-main/themes';// source: app/renderer/src/components// - removes the "src" from the path string (side note: to be removed in the future)importButtonfrom'dext-renderer/components/Button';
I think that it is time that we start considering setting
NODE_PATH
to set a specific folder as the source of truth for loading modules, beyond thenode_modules
folder.The aim is to the have the following (example)
before
after
The text was updated successfully, but these errors were encountered: