vercel / vercel/ncc

Transformer plugin for Nestjs/graphql cli plugin

Open
#783 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
9.8k
Forks
326
PR merge metrics
No merged PRs in 30d

Description

Hello,

First of all, congratulation for this spectacular tool!

I'm using ncc together with nestjs, graphql and it's own transformer CLI plugin. I've been able to make it work by compiling NestJs first (with its own build command) and then running ncc on already-transpiled code.

However, if I want to do the entire process with ncc only (in order to have a better source-map) the transformer is not applied, therefore the app doesn't work because of missing graphql fields (that should have been generated by the plugin).

Is there a way to specify a transformer plugin with ncc?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing ncc's CLI and configuration entry points alongside the NestJS GraphQL CLI plugin integration described in the issue. Reproduce the NestJS/GraphQL build with ncc alone and compare it with the pre-transpiled workflow. Done means the transformer can be used through ncc and the generated GraphQL fields and source maps work correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, javascript, node.js
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.