Skip to content

requiring as a CommonJS module doesn't work #61

Open
@mrak

Description

@mrak

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.

In the main file (dist/common/formatter.js:8-10) the require statements should be like this:

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 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions