requiring as a CommonJS module doesn't work #61
|
Have a fix being used in a few of my smaller libs. Will port over to formatter when time permits. Thank you for reporting. |
fampinheiro
commented
Sep 25, 2014
|
|
jamuhl
commented
Nov 4, 2014
|
+1 |
Kureev
commented
May 26, 2015
|
If I'll fix it, would you accept PR? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It may be related to how you convert
formatter.jsto CommonJS, but all of therequirestatements for internal modules are not using relative paths.In the
mainfile (dist/common/formatter.js:8-10) the require statements should be like this:Notice the relative paths being used. The compiled CommonJS files should all be using relative paths for in-module requires😄