Skip to content

Commit f66acb4

Browse files
committed
I think this is it
1 parent c1ec623 commit f66acb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ const plugin = function (babel, options = {}) {
153153
} = options;
154154

155155
// Always use auto-detected values
156-
const repoName = currentRepoName;
157-
const branch = currentBranch;
156+
const repoName = options.repo_name ? options.repo_name : currentRepoName;
157+
const branch = options.branch_name ? options.branch_name : currentRepoName;
158158

159159
return {
160160
name: "babel-plugin-codepress-html",

0 commit comments

Comments
 (0)