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

Angular 10 - CommonJS or AMD dependencies can cause optimization bailouts #35

Open
splincode opened this issue Aug 20, 2020 · 1 comment

Comments

@splincode
Copy link

After upgrade my project to Angular 10.

WARNING in  my-project depends on 'js-big-decimal'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
@splincode splincode changed the title Angular 10 Angular 10 - CommonJS or AMD dependencies can cause optimization bailouts Aug 20, 2020
@royNiladri
Copy link
Owner

This might breaking change introduced by angular, but I can still get it to work on CodeSandbox with the following code:

import { Component } from "@angular/core";
import * as Big from "js-big-decimal";

@Component({
  selector: "app-root",
  templateUrl: "./app.component.html",
  styleUrls: ["./app.component.css"]
})
export class AppComponent {
  title = "CodeSandbox";

  constructor(){
    let b = new Big(38);
    console.log(b);
  }
}

@royNiladri royNiladri removed their assignment Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants