docs(test-typescript): rename transpilation issues doc (#26893)

This commit is contained in:
Max Schmitt 2023-09-06 22:57:12 +02:00 committed by GitHub
parent abea8f4d1c
commit 0527006a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ The `pretest` script runs typescript on the tests. `test` will run the tests tha
Then `npm run test` will build the tests and run them.
## Transpilation issues
## Using `import` inside `evaluate()`
Using dynamic imports inside a function passed to various `evaluate()` methods is not supported. This is because Playwright uses `Function.prototype.toString()` to serialize functions, and transpiler will sometimes replace dynamic imports with `require()` calls, which are not valid inside the web page.