UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

15 lines (14 loc) 383 B
"use strict"; const _newLines = []; export function removeImportExport(fileContent) { const lines = fileContent.split("\n"); _newLines.length = 0; for (const line of lines) { const isImport = line.includes("import {"); const isExport = line.includes("export {"); if (!(isImport || isExport)) { _newLines.push(line); } } return _newLines.join("\n"); }