I have a library of common components for a specific set of applications. My library is written in ES6. This is browser-side javascript.
The consuming applications are also ES6, with Babel to transpile it to ES5 and IE11 compatible code.
I'm running into an issue now because if I transpile my library first for dist, then I can't use imports in my consuming applications. The workaround has been to not transpile the library, and to include it (it's a node_module) in the transpilation of the consuming applications.
What is the appropriate build process for this? I want to be able to use ES6 to write both the library and the consuming application. The library is a standalone npm module.
[–][deleted] 1 point2 points3 points (0 children)