josephtzeng / hocon-parser

A HOCON Parser for Node.js
ISC License
31 stars 10 forks source link

Not able to bundle using Nx/Webpack because of parent folder access in init() function #10

Closed pawaniu closed 3 years ago

pawaniu commented 3 years ago

Hi,

The init() function present in lib/core/Context.js finding files present in "sources", "builders", "transforms" folders which is one level up in the source code. But when we are bundling this package into node application using Nx/Webpack, then in main.jsi.e. the final bundle file, there is no parent directory preset with these mentioned names. Which gives error while initializing.

Can we have some const of all the files present in these folders instead of directly referring to fileSystem to avoid this error?