Skip to content

Commit

Permalink
Merge branch 'master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
emorikawa committed May 16, 2016
2 parents ec77de3 + 88f5cac commit eb0133f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nylas",
"productName": "Nylas N1",
"version": "0.4.37",
"version": "0.4.38",
"description": "An extensible, open-source mail client built on the modern web.",
"main": "./src/browser/main.js",
"repository": {
Expand Down
9 changes: 8 additions & 1 deletion src/compile-support/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

var crypto = require('crypto')
var path = require('path')
var defaultOptions = require('../../static/babelrc.json')

var babel = null
var babelVersionDirectory = null
Expand All @@ -12,6 +11,14 @@ var babelVersionDirectory = null
// babel-polyfill.
require('babel-regenerator-runtime');

// We run babel with lots of different working directories (like plugin folders).
// To make sure presets always resolve to the correct path inside N1, resolve
// them to their absolute paths ahead of time.
var defaultOptions = require('../../static/babelrc.json')
defaultOptions.presets = defaultOptions.presets.map((modulename) =>
require.resolve(`babel-preset-${modulename}`)
);

exports.shouldCompile = function (sourceCode, filePath) {
return (filePath.endsWith('.es6') || filePath.endsWith('.jsx'))
}
Expand Down
1 change: 0 additions & 1 deletion src/flux/nylas-long-connection.es6
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ export default class NylasLongConnection {
}

dispose(status) {
this._emitter.dispose()
this._buffer = ''
if (this._req) {
this._req.end()
Expand Down

0 comments on commit eb0133f

Please sign in to comment.