Skip to content

Commit

Permalink
fix(app migrator): plugin file loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Feb 22, 2019
1 parent f475fe1 commit b266b9c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ module.exports = async function (cwd, rawIds) {
]
for (const file of files) {
try {
const apply = loadModule(file, cwd) || (() => {})
const apply = loadModule(file, cwd)
if (!apply) continue
plugins.push(new MigratorPlugin(id, apply))
break
} catch (e) {
Expand Down

0 comments on commit b266b9c

Please sign in to comment.