Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reuse existing import if already defined in the file #5

Open
RIP21 opened this issue Apr 11, 2021 · 0 comments
Open

Reuse existing import if already defined in the file #5

RIP21 opened this issue Apr 11, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@RIP21
Copy link
Owner

RIP21 commented Apr 11, 2021

If we move from let say packlets/utils to @acme/utils and in the file, there is already a @acme/utils imports we should add imports to it and do not create a new one.

So from:

import { fn1 } from 'packlets/utils'
import { fn2 } from '@acme/utils'

To:

import { fn2, fn1 } from '@acme/utils'

Currently it will generate following:

import { fn1 } from '@acme/utils'
import { fn2 } from '@acme/utils'
@RIP21 RIP21 added the enhancement New feature or request label Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant