Esm: Question: Absolute imports or alias

Created on 9 Mar 2018  路  4Comments  路  Source: standard-things/esm

Hi,

is there an option to use aliases for import paths, similar to how webpack uses them.

Example, to use this:

import config from '@/config';

instead of:
import config from '../../../../config';

Thank you. :)

question

Most helpful comment

Hi @manico!

No there isn't right now.
As the Node loader implementation is ironed out we'll support it which will allow you to remap paths.

All 4 comments

Hi @manico!

No there isn't right now.
As the Node loader implementation is ironed out we'll support it which will allow you to remap paths.

Please update the status of this issue

Any update?

How's this looking?

Was this page helpful?
0 / 5 - 0 ratings