Skip to content
This repository was archived by the owner on Aug 24, 2018. It is now read-only.
This repository was archived by the owner on Aug 24, 2018. It is now read-only.

"file" loader for json-refs not supported? #2

Open
@jlowcs

Description

@jlowcs

How was/is built this index.js file? I can see that the code is not exactly the same as the code from the libs it seems to be built on.

For instance, the way it handles the "file" scheme for json-refs is not the same as the one from path-loader (https://github.com/whitlockjc/path-loader/blob/v1.0.1/lib/loaders/file.js).

I'm currently trying to embed swagger-editor in node-webkit, and I'm having trouble with the "file" scheme, as I'm currently getting a The 'file' scheme is not supported in the browser error when using a file://location.

I can understand why the code cannot use fs, as it's in a worker. But it seems to me it could nonetheless try using a xhr request for filerequests.

Is there any way I could submit a merge request for that?

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