optimize imports in tinydom.node