Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Add componentIsolation as an option in configurations.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-015 committed Feb 22, 2022
1 parent 57fd1c7 commit c6bf10b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/configurations/configurations.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"desktop": 1280
},
"scaling": true,
"enablePrototyping": false
"enablePrototyping": false,
"componentIsolation": "none"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ComponentIsolationConfiguration {

factory ComponentIsolationConfiguration.getConfiguration(
String type, PBGenerationProjectData projectData) {
switch (type) {
switch (type.toLowerCase()) {
case 'widgetbook':
return ComponentIsolationConfiguration._internal(
WidgetbookGenerator(projectData), WidgetBookService());
Expand Down

0 comments on commit c6bf10b

Please sign in to comment.