webmonarch / quokka-support-yarn2-pnp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quokka-support-yarn2-pnp

Example repo to debug wallabyjs/quokka#875

Project Creation

git init quokka-support-yarn2-pnp
cd quokka-support-yarn2-pnp
yarn init -2 
yarn add -D typescript ts-node @types/node

yarn install node-fetch

Running

  1. Run Quokka on scratch.ts

EXPECTED

  • Package node-fetch to be founbd
  • Fetch https://postman-echo.com/get

ACTUAL

img.png

NOTES

  • I can install the package for the current file and it will work for the session.
  • Installing for the project does nothing.
  • It seems to work as expected for nodeLinker pnpm and node-modules
    • See branches nodeLinker-pnpm and nodeLinker-node-modules

About


Languages

Language:TypeScript 100.0%