sasjs / adapter

An adapter for bidirectional SAS® <-> Javascript communication

Home Page:https://adapter.sasjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

warning: CommonJS or AMD dependencies can cause optimization bailouts

allanbowe opened this issue · comments

Currently in the DC (Angular) build we get the following warning:

Warning: /Users/munja/git/data-controller/client/src/app/general/user-nav-dropdown/user-nav-dropdown.component.ts depends on '@sasjs/adapter'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

We're currently packaging the adapter as a commonjs module for compatibility with Node - so we can use the same package in the CLI and in browser apps.

To address the warning above, we could provide ES6 modules, additionally, in the @sasjs/adapter/esm folder.