Add extensions and targetExtensions option