Skip to content

imports with resolution-mode not replaced #582

Open
@jer-sen

Description

@jer-sen

With my new TS config I have some imports in the output such as:

 "type": "object"
    },
    "import(\"apps/src/fileExportingTypes\",{assert:{\"resolution-mode\":\"import\"}}).MyType": {
      "anyOf": [

Fixing this regex make them disappear:

var REGEX_FILE_NAME_OR_SPACE = /(\bimport\(".*?"(, \{ assert: \{ "resolution-mode": "(import|require)" \} \})?\)|".*?")\.| /g;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions