Files
dashboard/fix_imports.cjs
T

12 lines
376 B
JavaScript

const fs = require('fs');
let content = fs.readFileSync('./components/AiInsightCard.tsx', 'utf8');
content = content.replace(/import \{ jsPDF \} from 'jspdf';\nimport html2canvas from 'html2canvas';\n/g, '');
content = `import { jsPDF } from 'jspdf';
import html2canvas from 'html2canvas';
` + content;
fs.writeFileSync('./components/AiInsightCard.tsx', content, 'utf8');