Hi, I have a question about "resolve". I just want globbed files. I thought, this will work:
require('./includes/*.js', {mode: 'expand'});
but internally it will use default resolve functions ["path-reduce", "strip-ext"]. If I dont want to use any resolving function I need to write my own resolve function, i.e: resolve:(base,files)=>files, or simply use empty array [].
require('./includes/*.js', {mode: 'expand', resolve:[]});
require('./includes/*.js', {mode: 'expand', resolve:(base,files)=>files});
My questions:
- is empty array a hack? I think it should return defaults.
- what is the correct approach to omit any resolving functions
Thanks in advance
Hi, I have a question about "resolve". I just want globbed files. I thought, this will work:
require('./includes/*.js', {mode: 'expand'});but internally it will use default resolve functions ["path-reduce", "strip-ext"]. If I dont want to use any resolving function I need to write my own resolve function, i.e: resolve:(base,files)=>files, or simply use empty array [].
require('./includes/*.js', {mode: 'expand', resolve:[]});require('./includes/*.js', {mode: 'expand', resolve:(base,files)=>files});My questions:
Thanks in advance