Open mrak opened 10 years ago
It may be related to how you convert formatter.js to CommonJS, but all of the require statements for internal modules are not using relative paths.
formatter.js
require
In the main file (dist/common/formatter.js:8-10) the require statements should be like this:
main
dist/common/formatter.js:8-10
var patternMatcher = require('./pattern-matcher'); var inptSel = require('./inpt-sel'); var utils = require('./utils');
Notice the relative paths being used. The compiled CommonJS files should all be using relative paths for in-module requires :smile:
Have a fix being used in a few of my smaller libs. Will port over to formatter when time permits. Thank you for reporting.
:+1:
+1
If I'll fix it, would you accept PR?
It may be related to how you convert
formatter.js
to CommonJS, but all of therequire
statements for internal modules are not using relative paths.In the
main
file (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 :smile: