Skip to content

Commit

Permalink
Fix issue with virtualModuleEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Sep 13, 2022
1 parent a5b0349 commit c9d13c5
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import {
addArgTypesEnhancer,
setGlobalRender,
} from '{{clientApi}}';
import * as config from '{{configFilename}}';
import * as previewAnnotations from '{{previewAnnotationFilename}}';

Object.keys(config).forEach((key) => {
const value = config[key];
Object.keys(previewAnnotations).forEach((key) => {
const value = previewAnnotations[key];
switch (key) {
case 'args': {
return addArgs(value);
Expand Down Expand Up @@ -54,8 +54,11 @@ Object.keys(config).forEach((key) => {
return addStepRunner(value);
}
default: {
// eslint-disable-next-line prefer-template
return console.log(key + ' was not supported :( !');
return console.log(
`Unknown key '${key}' exported by preview annotation file '` +
'{{previewAnnotationFilename}}' +
`'`
);
}
}
});

0 comments on commit c9d13c5

Please sign in to comment.