Not a finance expert, but I don't think the transaction costs would factor would they? You would own "units" in the fund, rather than the underlying security itself. The makeup of the unit however, would be dynamic
You would need to have some sort of clever accounting to make it work, although, while retail commissions are at zero, and fractional shares may become available, assembling your own index fund may be possible with only a significant time cost.