@quixomatic/ui-renderer-react-simple
Version:
React 18 renderer for ServiceNow UI Framework with automatic setup and babel plugin patching
18 lines (14 loc) ⢠573 B
JavaScript
const BabelPatcher = require('./babel-patcher');
console.log('š§ ServiceNow Babel Plugin Patcher');
console.log('===================================');
const patcher = new BabelPatcher();
const success = patcher.run('patch');
if (success) {
console.log('\nš Babel plugin patched successfully!');
console.log('React renderer should now work without issues.');
} else {
console.error('\nā Failed to patch babel plugin.');
console.error('You may need to manually update the ServiceNow babel plugin file.');
process.exit(1);
}