import-js icon indicating copy to clipboard operation
import-js copied to clipboard

Default aliases

Open lencioni opened this issue 9 years ago • 2 comments

I've been thinking about how we can make import-js more useful for folks out of the box, without any configuration.

Besides defaulting to relative paths (#186), I think it might be interesting to include some default aliases that are only activated when you have the aliased package in your dependencies, and can be overridden by configuration. This would work well for a few packages that are commonly aliased, like $ for jquery and _ for underscore or lodash. There may be others that we could add as we go along.

lencioni avatar Mar 18 '16 14:03 lencioni

I like this idea!

trotzig avatar Mar 18 '16 18:03 trotzig

I wonder if this should be combined with #107 and just allow this to be defined in the project's package.json.

lencioni avatar May 01 '16 15:05 lencioni