-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support different extensions for "config" and "addons" files #3913
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3913 +/- ##
==========================================
- Coverage 41.55% 39.61% -1.94%
==========================================
Files 455 431 -24
Lines 5179 5452 +273
Branches 899 741 -158
==========================================
+ Hits 2152 2160 +8
- Misses 2487 2910 +423
+ Partials 540 382 -158
Continue to review full report at Codecov.
|
I'll check it out |
lib/core/src/server/config.js
Outdated
@@ -2,8 +2,8 @@ import findCacheDir from 'find-cache-dir'; | |||
import { logger } from '@storybook/node-logger'; | |||
import { createDefaultWebpackConfig } from './config/defaults/webpack.config'; | |||
import devBabelConfig from './config/babel'; | |||
import loadBabelConfig from './babel_config'; | |||
import loadCustomConfig from './loadCustomWebpackConfig'; | |||
import loadBabelConfig from './loadCustomBabelConfig'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not name this import loadCustomBabelConfig from './loadCustomBabelConfig';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, will rename
its's green now... Dafuq merge from master did? |
@igor-dv apply additional magic |
LGTM |
Issue: #3737
What I did
When one uses TS (not only, though), she will probably prefer using
.ts
in all of the files in a codebase.Currently, we are forcing people to use
config.js
andaddons.js
to configure their stuff.I've used the same approach as in #3785 to fix this.
Notice, I've needed to wrap
.ts
transformer in jest to the following pattern:in order to support
require.context
in TS with Jest 🤕