Skip to content

Commit 52dbc6c

Browse files
nahanilSolarLiner
authored andcommitted
Fixes #17 (#18)
Running `npm run build` fails with the below error, this ought to stop that from happening (though the `err` variable will go unused). Fixes #17
1 parent a0c6813 commit 52dbc6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function createPluginOptions(api, projectOptions) {
9898
if (existsSync(oldConfigPath)) {
9999
Object.assign(options, JSON.parse(readFileSync(oldConfigPath).toString("utf-8")));
100100
}
101-
} catch {
101+
} catch (err) {
102102
if (existsSync(oldConfigPath)) {
103103
options = JSON.parse(readFileSync(oldConfigPath).toString("utf-8"));
104104
}

0 commit comments

Comments
 (0)