Phase-field fracture of polymers