Skip to content

Commit

Permalink
fix(resolve): default moduleResolution to node
Browse files Browse the repository at this point in the history
  • Loading branch information
fathyb committed Dec 15, 2017
1 parent bc9e6a4 commit b0d111d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/backend/config-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ export class ConfigurationLoader<T> {
const tsconfig = configPath && commentsJson.parse(await readFile(configPath))
const transpilerOptions = {
compilerOptions: {
module: 'commonjs',
jsx: 'preserve'
module: 'es2015',
moduleResolution: 'node'
}
} as any

// Overwrite default if config is found
if(tsconfig) {
transpilerOptions.compilerOptions = tsconfig.compilerOptions
transpilerOptions.compilerOptions = {
...transpilerOptions.compilerOptions,
...tsconfig.compilerOptions
}
transpilerOptions.files = tsconfig.files
transpilerOptions.include = tsconfig.include
transpilerOptions.exclude = tsconfig.exclude
Expand Down

0 comments on commit b0d111d

Please sign in to comment.