You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(node-protocol): respect alias and tsconfig paths when stripping node: prefix (#773)
* fix(node-protocol): respect alias and tsconfig paths when stripping node: prefix
* refactor
* fix(tests): update assertions to use regex for path and crypto imports
* refactor: reorder test cases
---------
Co-authored-by: Kevin Deng <[email protected]>
'index.ts': `import { randomUUID } from 'node:crypto'\nimport { resolve } from 'node:path'\nexport const id = randomUUID()\nexport const dir = resolve('.')`,
202
+
'crypto-polyfill.ts': `export function randomUUID() { return 'polyfill-uuid' }`,
203
+
'path-polyfill.ts': `export function resolve(...args: string[]) { return args.join('/') }`,
0 commit comments