thomaspink / ng-storyblok

Full Storyblok integration in Angular 2
MIT License
8 stars 1 forks source link

Tests: Treating '...' as external dependency #16

Open thomaspink opened 7 years ago

thomaspink commented 7 years ago

Getting the following warnings when running tests. Any ideas how to remove them?

Treating '@angular/core/testing' as external dependency
Treating '@angular/core' as external dependency
Treating '@angular/core/testing' as external dependency
Treating '@angular/http' as external dependency
Treating 'rxjs/Observable' as external dependency
Treating '@angular/core' as external dependency
Treating '@angular/http' as external dependency
Treating '@angular/core' as external dependency
Treating '@angular/core' as external dependency
Treating '@angular/core' as external dependency
Treating '@angular/http' as external dependency
Treating '@angular/core' as external dependency
Treating '@angular/core' as external dependency
Treating 'rxjs/Observable' as external dependency
Treating 'rxjs/add/operator/map' as external dependency
Treating '@angular/core/testing' as external dependency
Treating '@angular/http' as external dependency

Also:


The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten```
thomaspink commented 7 years ago

Suppressing for now in rollup config:

  onwarn: function (message) {
    // Suppress this error message... there are hundreds of them. Angular team says to ignore it.
    // https://github.com/rollup/rollup/wiki/Troubleshooting#this-is-undefined
    if (/The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten./.test(message)) {
      return;
    }
    console.error(message);
  }