How do you setup static paths in javascript? -


this may silly question, can't seem find simple answer via google

lets have react component library, full of display component, , want included of smart/container components. because used on place, i'd rather not use relative paths every different component in app import component '../../library/component' , ../library/component , ../../../library/component etc...

how set had import component 'library/component' wherever in app wanted be?

asked way, prescribed way setup static paths in javascript?

with webpack using way of "several root directories". builder find modules several paths. , can write this: "./lodash" instead "../../../../lodash". this more info.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -