Skip to content

Commit

Permalink
No longer elevate warnings to errors
Browse files Browse the repository at this point in the history
  • Loading branch information
okaycj committed Nov 6, 2024
1 parent 2d3f785 commit 2375c05
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions rollup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,13 @@ export function makeRollupConfig(iifeName) {
* @param log - Log object containing location, frame, and message.
* @param handler - Function called to record log.
*/
const onLog = (level, log, handler) => {
const onLog = (level, log) => {
// Don't log known circular dependencies with the data package.
if (log.code === "CIRCULAR_DEPENDENCY" && iifeName === packages.data.iife) {
if (knownCircularDeps.some((value) => log.message.includes(value))) {
return;
}
}

if (level === "warn") {
handler("error", log);
} else {
handler(level, log);
}
};

return jsPsychMakeRollupConfig(iifeName).map((config) => {
Expand Down

0 comments on commit 2375c05

Please sign in to comment.