File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphql-tools/url-loader ' : patch
3
+ ---
4
+
5
+ Suppress dynamic import warnings from webpack
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ export { FetchFn };
32
32
export type AsyncImportFn = ( moduleName : string ) => PromiseLike < any > ;
33
33
export type SyncImportFn = ( moduleName : string ) => any ;
34
34
35
- const asyncImport : AsyncImportFn = ( moduleName : string ) => import ( moduleName ) ;
36
- const syncImport : SyncImportFn = ( moduleName : string ) => require ( moduleName ) ;
35
+ const asyncImport : AsyncImportFn = ( moduleName : string ) => import ( ` ${ moduleName } ` ) ;
36
+ const syncImport : SyncImportFn = ( moduleName : string ) => require ( ` ${ moduleName } ` ) ;
37
37
38
38
type HeadersConfig = Record < string , string > ;
39
39
You can’t perform that action at this time.
0 commit comments