Skip to content

Commit 0d02cde

Browse files
committed
config-ip-filter: Reconfigure brunch to not compile storybook files to avoid spread operator error.
1 parent f649cb4 commit 0d02cde

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build/brunch-config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ module.exports = {
9898
}
9999
},
100100

101+
/// STORYBOOK COMPATIBILITY ///////////////////////////////////////////////////
102+
/*/ Storybook uses spread operators, which are not supported in the current
103+
version of brunch-babel. Brunch doesn't need to compile storybook files
104+
anyway because storybook has its own compile via webpack. So ignore them.
105+
/*/ conventions: {
106+
ignored: [ /\.stories.js$/]
107+
},
108+
101109
/// OVERRIDES FOR PRODUCTION //////////////////////////////////////////////////
102110
/*/ Brunch configuration settings default to development mode in the
103111
environment. You can override each env (e.g. production) after all other

0 commit comments

Comments
 (0)