mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 10:33:14 +08:00
[client-app] fix hardcoded babelrc path for appveyor
This commit is contained in:
parent
3eb05713df
commit
8e355ba476
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ 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.
|
||||
const babelPath = path.resolve(path.join(__dirname, "../../.babelrc"))
|
||||
const babelPath = path.resolve(path.join(__dirname, "..", "..", ".babelrc"))
|
||||
var defaultOptions = JSON.parse(fs.readFileSync(babelPath));
|
||||
defaultOptions.presets = (defaultOptions.presets || []).map((modulename) =>
|
||||
require.resolve(`babel-preset-${modulename}`)
|
||||
|
|
Loading…
Reference in a new issue