babel-plugin-wildcard icon indicating copy to clipboard operation
babel-plugin-wildcard copied to clipboard

An option to exclude some files

Open EmEsA opened this issue 4 years ago • 2 comments

Could we somehow exclude particular files from being imported? I mean especially the situation when the index file is in the same folder as the ones we would like to import. Right now we have to create a separate folder to isolate them.

EmEsA avatar Jan 29 '21 08:01 EmEsA

@EmEsA this would be great enhancement 👍 +1

rbayley avatar Mar 19 '21 15:03 rbayley

Does a glob pattern resolve this issue? Such as:

import * as AllComponents from '../../../components/**/*[!index].js';

bewards avatar Sep 30 '22 15:09 bewards