Skip to content
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

Use babel-preset-react-app preset as the default preset. #526

Merged
merged 2 commits into from
Oct 4, 2016

Conversation

arunoda
Copy link
Member

@arunoda arunoda commented Oct 4, 2016

With that, we could simply use a single preset rather managing them our own.
Preset: https://www.npmjs.com/package/babel-preset-react-app

cacheDirectory: true,
// It enables a cache directory for faster-rebuilds
// `find-cache-dir` will create the cache directory under the node_modules directory.
cacheDirectory: findCacheDir({ name: 'react-storybook' }),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not related to this PR but improves the caching process for babel.

@@ -11,6 +11,8 @@ import packageJson from '../../package.json';
import { parseList, getEnvConfig } from './utils';
import { track, dontTrack } from './track_usage';

process.env.NODE_ENV = process.env.NODE_ENV || 'development';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

babel-preset-react-app preset only works if we set a proper value to NODE_ENV env variable.

@arunoda arunoda merged commit 19e4db0 into master Oct 4, 2016
@arunoda arunoda deleted the use-cra-preset branch October 4, 2016 13:19
@shilman shilman added the misc label May 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants