You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to exclude all *.stories.ts files from the autoimport plugin, since the export is only needed for storybook and nothing else.
I have tried with two methods:
Adding the exclude property in the config object with an array as follows [\.stories.ts\.ts$];
Using a negative lookbehind in the include array regex as follows: include: [/(?<!(stories))(\.[tj]sx?)$/]
It seems that either they are not working or I am missing something. From the documentation I couln't work out if I am doing something wron
Describe the bug
I'm trying to exclude all *.stories.ts files from the autoimport plugin, since the export is only needed for storybook and nothing else.
I have tried with two methods:
exclude
property in the config object with an array as follows[\.stories.ts\.ts$]
;include
array regex as follows:include: [/(?<!(stories))(\.[tj]sx?)$/]
It seems that either they are not working or I am missing something. From the documentation I couln't work out if I am doing something wron
Reproduction
AutoImport({include: [ /(?<!(stories))(\.[tj]sx?)$/],)}
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: