doc: fixes ESM/CJS wrapper example
This PR updates ESM wrapper example to prevent package maintainers to broke packages after copy-pasting.
Ref: https://github.com/nodejs/node/issues/34714
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines