Skip to content

Commit

Permalink
Merge pull request #2 from konvenit/MP-49728-fix-miceplace-build
Browse files Browse the repository at this point in the history
fix miceplace build
  • Loading branch information
amin19948 authored May 27, 2024
2 parents 80fe03d + 23e86d8 commit 923a3fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/buildCSS.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const compileCSS = require('react-with-styles-interface-css-compiler');
const registerMaxSpecificity = require('react-with-styles-interface-css/dist/utils/registerMaxSpecificity').default;
const registerCSSInterfaceWithDefaultTheme = require('../src/utils/registerCSSInterfaceWithDefaultTheme').default;

console.error = msg => { throw new SyntaxError(msg); };
const originalError = console.error;
console.error = (...args) => {
if (typeof args[0] === 'string' && /defaultProps/.test(args[0])) return;
originalError(...args);
};
console.warn = msg => { throw new SyntaxError(msg); };

const args = process.argv.slice(2);
Expand Down

0 comments on commit 923a3fb

Please sign in to comment.