Skip to content

Commit

Permalink
improve our plugin error message
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Jun 4, 2020
1 parent f97c841 commit b0a6842
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/commands/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,14 @@ export async function install(
);
console.log(
chalk.dim(
` Find a more web-friendly alternative, or add the "rollup-plugin-node-polyfills" plugin to your Snowpack config file.`,
` Search pika.dev for a web-friendly alternative to ${chalk.bold(warning.importer)}`,
),
);
console.log(
chalk.dim(
` Or, add ${chalk.bold(
'"rollup-plugin-node-polyfills"',
)} to installOptions.rollup.plugins in your Snowpack config file.`,
),
);
} else {
Expand Down

0 comments on commit b0a6842

Please sign in to comment.