Skip to content

Commit

Permalink
feat: include filename in finalCompilerOptions (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
NE-SmallTown authored and haoqunjiang committed Dec 8, 2019
1 parent ba7d167 commit 3dda72d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
node_modules
*.log
dist
coverage
coverage
.idea
3 changes: 2 additions & 1 deletion lib/compileTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ function actuallyCompile(
srcsetModule()
]
finalCompilerOptions = Object.assign({}, compilerOptions, {
modules: [...builtInModules, ...(compilerOptions.modules || [])]
modules: [...builtInModules, ...(compilerOptions.modules || [])],
filename: options.filename
})
}

Expand Down

0 comments on commit 3dda72d

Please sign in to comment.