File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed
extensions/ql-vscode/test Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change
1
+ // These are all the packages that DO need to be transformed. All other packages will be ignored.
2
+ // These pacakges all use ES modules, so need to be transformed
3
+ const transformScopes = [ "@microsoft" , "@octokit" ] ;
4
+ const transformPackages = [
5
+ "@vscode/webview-ui-toolkit" ,
6
+ "before-after-hook" ,
7
+ "d3" ,
8
+ "delaunator" ,
9
+ "exenv-es6" ,
10
+ "internmap" ,
11
+ "nanoid" ,
12
+ "p-queue" ,
13
+ "p-timeout" ,
14
+ "robust-predicates" ,
15
+ "universal-user-agent" ,
16
+ ] ;
17
+ const transformWildcards = [ "d3-(.*)" ] ;
18
+ const transformPatterns = [
19
+ ...transformScopes . map ( ( scope ) => `${ scope } /.+` ) ,
20
+ ...transformPackages ,
21
+ ...transformWildcards ,
22
+ ] ;
23
+
1
24
export const transformIgnorePatterns = [
2
- // These use ES modules, so need to be transformed
3
- "node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|@octokit/.+|before-after-hook|d3|d3-(.*)|delaunator|exenv-es6|internmap|nanoid|p-queue|p-timeout|robust-predicates|universal-user-agent)/.*)" ,
25
+ `node_modules/(?!(?:${ transformPatterns . join ( "|" ) } )/.*)` ,
4
26
] ;
You can’t perform that action at this time.
0 commit comments