Skip to content

Commit

Permalink
Update babel-preset-react-app to the latest. (#576)
Browse files Browse the repository at this point in the history
This also updated some of the other babel packages too.
So, which introduce some code change in the dist.
  • Loading branch information
arunoda authored Oct 27, 2016
1 parent 4fab334 commit 9fd819a
Show file tree
Hide file tree
Showing 7 changed files with 269 additions and 124 deletions.
4 changes: 2 additions & 2 deletions dist/client/preview/client_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de

var ClientApi = function () {
function ClientApi(_ref) {
var channel = _ref.channel;
var storyStore = _ref.storyStore;
var channel = _ref.channel,
storyStore = _ref.storyStore;
(0, _classCallCheck3.default)(this, ClientApi);

// channel can be null when running in node
Expand Down
10 changes: 5 additions & 5 deletions dist/client/preview/config_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de

var ConfigApi = function () {
function ConfigApi(_ref) {
var channel = _ref.channel;
var storyStore = _ref.storyStore;
var reduxStore = _ref.reduxStore;
var channel = _ref.channel,
storyStore = _ref.storyStore,
reduxStore = _ref.reduxStore;
(0, _classCallCheck3.default)(this, ConfigApi);

// channel can be null when running in node
Expand All @@ -50,8 +50,8 @@ var ConfigApi = function () {
}, {
key: '_renderError',
value: function _renderError(e) {
var stack = e.stack;
var message = e.message;
var stack = e.stack,
message = e.message;

var error = { stack: stack, message: message };
this._reduxStore.dispatch((0, _actions.setError)(error));
Expand Down
5 changes: 2 additions & 3 deletions dist/client/preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ var _reducer2 = _interopRequireDefault(_reducer);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// check whether we're running on node/browser
var _global = global; /* global window */

var navigator = _global.navigator;
var _global = global,
navigator = _global.navigator; /* global window */

var isBrowser = navigator && navigator.userAgent !== 'storyshots';

Expand Down
8 changes: 4 additions & 4 deletions dist/client/preview/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
});

exports.default = function (context) {
var queryParams = context.queryParams;
var reduxStore = context.reduxStore;
var window = context.window;
var channel = context.channel;
var queryParams = context.queryParams,
reduxStore = context.reduxStore,
window = context.window,
channel = context.channel;
// set the story if correct params are loaded via the URL.

if (queryParams.selectedKind) {
Expand Down
8 changes: 4 additions & 4 deletions dist/client/preview/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ function renderMain(data, storyStore) {
);
};
var noPreview = _react2.default.createElement(NoPreview, null);
var selectedKind = data.selectedKind;
var selectedStory = data.selectedStory;
var selectedKind = data.selectedKind,
selectedStory = data.selectedStory;


var story = storyStore.getStory(selectedKind, selectedStory);
Expand Down Expand Up @@ -130,8 +130,8 @@ function renderMain(data, storyStore) {
}

function renderPreview(_ref) {
var reduxStore = _ref.reduxStore;
var storyStore = _ref.storyStore;
var reduxStore = _ref.reduxStore,
storyStore = _ref.storyStore;

var state = reduxStore.getState();
if (state.error) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"babel-core": "^6.11.4",
"babel-loader": "^6.2.4",
"babel-plugin-react-docgen": "^1.3.2",
"babel-preset-react-app": "^0.2.1",
"babel-preset-react-app": "^1.0.0",
"babel-runtime": "^6.9.2",
"case-sensitive-paths-webpack-plugin": "^1.1.2",
"chalk": "^1.1.3",
Expand Down
Loading

0 comments on commit 9fd819a

Please sign in to comment.