Skip to content

Get rid of need for dependencies.ts #12

@alloy

Description

@alloy

This is going to go wrong more than once, so we should replace it with something transparent.

The simplest approach looks to be to write code as normal, e.g.:

import { visit } from "graphql"

But then after compiling it we run an additional babel transform or sed script that rewrites it to:

const { visit } = require("./graphql")

…where ./graphql is a module that does the dance to get vscode-apollo’s node_modules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions