-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix building in paths containing even more special characters
Summary: rollup-pluginutils scopes include/exclude patterns provided to the current directory by prefixing the pattern with the current path. Unfortunately, if that path contains special characters that have an effect in regular expressions, they're not treated as literal. There's a bug open against this behaviour: rollup/rollup-pluginutils#39 Workaround it by providing include/exclude as regular expressions, which doesn't trigger this behaviour. Test Plan: Build in a directory named "qa^(2),2" Reviewers: #developer_tools, Jupiter, csnider Reviewed By: #developer_tools, Jupiter, csnider Subscribers: csnider JIRA Issues: IPD-102765 Differential Revision: https://phabricator.firmwareci.fitbit.com/D2258
- Loading branch information
Showing
4 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
declare namespace rollupPluginUtils { | ||
function createFilter(include: string | string[], exclude: string | string[]): (id: string) => boolean; | ||
type Filter = string | string[] | RegExp | RegExp[]; | ||
function createFilter(include: Filter, exclude: Filter): (id: string) => boolean; | ||
} | ||
export = rollupPluginUtils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters