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

bug: multiple import statements for tslib #587

Closed
alan-agius4 opened this issue Feb 5, 2018 · 1 comment · Fixed by #588
Closed

bug: multiple import statements for tslib #587

alan-agius4 opened this issue Feb 5, 2018 · 1 comment · Fixed by #588

Comments

@alan-agius4
Copy link
Member

Type of Issue

[x] Bug Report
[ ] Feature Request

Description

In some cases when downleveling you'll end up with 2 import statements for tslibs example

import * as tslib_1 from "tslib";
import { __decorate, __metadata } from 'tslib';

This not ideal as the first one requires to import the whole library.

How To Reproduce

Just run build

Expected Behaviour

Only a single import is present

Version Information

ng-packagr: 2.0.0-rc.13
@angular/*: x.y.z
typescript: x.y.z
rxjs: x.y.z
node: x.y.z
npm/yarn: x.y.z

please include any version information that might be relevant, e.g. other third-party libraries

@github-actions
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

This action has been performed automatically by a bot.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant