Unverified Commit 6885b98d authored by OJ Kwon's avatar OJ Kwon Committed by GitHub

feat(turbopack): add crypto polyfill (#51622)



### What?

PR attempts to fix WEB-1214, provides a polyfill to globalThis.crypto.
parent 44d1a1cb
import 'next/dist/server/node-polyfill-fetch' import 'next/dist/server/node-polyfill-fetch'
import 'next/dist/server/node-polyfill-web-streams' import 'next/dist/server/node-polyfill-web-streams'
import 'next/dist/server/node-polyfill-headers' import 'next/dist/server/node-polyfill-headers'
import 'next/dist/server/node-polyfill-crypto'
import './async-local-storage' import './async-local-storage'
...@@ -55,6 +55,7 @@ const enabledTests = [ ...@@ -55,6 +55,7 @@ const enabledTests = [
'test/e2e/app-dir/searchparams-static-bailout/searchparams-static-bailout.test.ts', 'test/e2e/app-dir/searchparams-static-bailout/searchparams-static-bailout.test.ts',
'test/e2e/app-dir/test-template/{{ toFileName name }}/{{ toFileName name }}.test.ts', 'test/e2e/app-dir/test-template/{{ toFileName name }}/{{ toFileName name }}.test.ts',
'test/e2e/app-dir/use-selected-layout-segment-s/use-selected-layout-segment-s.test.ts', 'test/e2e/app-dir/use-selected-layout-segment-s/use-selected-layout-segment-s.test.ts',
'test/e2e/app-dir/crypto-globally-available/crypto-globally-available.test.ts',
'test/e2e/browserslist-extends/index.test.ts', 'test/e2e/browserslist-extends/index.test.ts',
'test/e2e/config-promise-export/async-function.test.ts', 'test/e2e/config-promise-export/async-function.test.ts',
'test/e2e/config-promise-export/promise.test.ts', 'test/e2e/config-promise-export/promise.test.ts',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment