Skip to content

Commit

Permalink
Fix not being able to find babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGinnivan committed Jan 8, 2020
1 parent 537b086 commit 2cf93b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/config/ts-loader-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ export function getTypeScriptWebpackRule(
? options.buildConfig.BABEL_CONFIG_SERVER
: options.buildConfig.BABEL_CONFIG_CLIENT) || '.babelrc'

let babelConfig: string | undefined = fs.existsSync(babelConfigFile)
? babelConfigFile
: path.resolve(options.buildConfig.BASE, babelConfigFile)
let babelConfig: string | undefined = path.resolve(options.buildConfig.BASE, babelConfigFile)

if (!fs.existsSync(babelConfig)) {
babelConfig = path.resolve(process.cwd(), babelConfigFile)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "project-watchtower",
"version": "2.0.0-beta.3",
"version": "2.0.0-beta.4",
"license": "MIT",
"author": {
"name": "Seven West Media"
Expand Down

0 comments on commit 2cf93b1

Please sign in to comment.