Skip to main content

Module util

Module util 

Source

Functions§

check_and_emit_too_many_matches_warning
request_to_string
throw_module_not_found_error_expr
Creates a IIFE expression that throws a “Cannot find module” error for the given request string
throw_module_not_found_expr
Creates a IIFE expression that throws a “Cannot find module” error for the given request string
throw_module_not_found_expr_async
Creates a Promise that rejects with a “Cannot find module” error for the given request string. Use this for async contexts (dynamic imports).