module: support pattern trailers for imports field
The pattern trailers PR in https://github.com/nodejs/node/pull/39635 implemented pattern trailers for the "exports"
field but not the "imports"
field.
This extends the implementation to the imports field analogously.
@nodejs/modules