Skip to content

Change Fengari path parsing #11

Description

@comicallynathan

Issue: analyse_requires.js uses some sort of string parsing to resolve the path. However, it returns an error:

Module build failed (from ./node_modules/fengari-loader/src/fengari-loader.js):
Error: Cannot find module '/defs.js'

Solution: I've removed the parsing and replaced fengariPath as "fengari/src" where require(${fengariPath}/defs.js); becomes require("fengari/src/defs.js");. The console doesn't return an error, and the compiler works.

Next step: Due to compatibility, analyse_require.js should follow the solution that I provided.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions