function createError(msg, loc) {
	const error = new WebpackError(msg);
	error.name = "ImportMetaContextError";
	error.loc = loc;
	return error;
}
@param {string} msg message
@param {DependencyLocation} loc location
@returns {WebpackError} error