PowerChart errors with the ES6 module because of this spread operator in XFC (possibly other reasons too but this is the first error). It works if cerner-smart-embeddable-lib includes the lib version though.
Using the ES6 module will also allow apps to disable XFC logging by defining process.env.NODE_ENV per the readme. Thus partially resolving these issues:
The info about process.env.NODE_ENV should also be documented on this project's readme. There is no way a user would know the logging is coming from a dependency nor how to disable it.
I say the issues are "partially resolved" because non-webpack users will still have no way to disable logging. XFC should probably provide a run-time config to disable logging so that users of the pre-build .min.js version of cerner-smart-embeddable-lib can turn it off and utilize f-twelve.
This (cerner-smart-embeddable-lib.js#L3):
Should be this:
Or better yet:
That change will allow apps to import the ES6 module
Instead of plucking out the pre-built version
PowerChart errors with the ES6 module because of this spread operator in XFC (possibly other reasons too but this is the first error). It works if cerner-smart-embeddable-lib includes the
lib
version though.Using the ES6 module will also allow apps to disable XFC logging by defining process.env.NODE_ENV per the readme. Thus partially resolving these issues:
The info about
process.env.NODE_ENV
should also be documented on this project's readme. There is no way a user would know the logging is coming from a dependency nor how to disable it.I say the issues are "partially resolved" because non-webpack users will still have no way to disable logging. XFC should probably provide a run-time config to disable logging so that users of the pre-build
.min.js
version of cerner-smart-embeddable-lib can turn it off and utilize f-twelve.